-rw-r--r-- | noncore/graphics/drawpad/drawpadcanvas.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/graphics/drawpad/drawpadcanvas.cpp b/noncore/graphics/drawpad/drawpadcanvas.cpp index 4547b41..ae1b554 100644 --- a/noncore/graphics/drawpad/drawpadcanvas.cpp +++ b/noncore/graphics/drawpad/drawpadcanvas.cpp @@ -32,2 +32,4 @@ +const int PAGE_BACKUPS = 99; + class DrawPadCanvasXmlHandler: public QXmlDefaultHandler @@ -374,3 +376,3 @@ void DrawPadCanvas::backupPage() - while (m_pageBackups.count() >= (5 + 1)) { + while (m_pageBackups.count() >= (PAGE_BACKUPS + 1)) { m_pageBackups.removeFirst(); |