summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/drawpad/drawpadcanvas.cpp4
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
@@ -29,8 +29,10 @@
#include <qxml.h>
#include <zlib.h>
+const int PAGE_BACKUPS = 99;
+
class DrawPadCanvasXmlHandler: public QXmlDefaultHandler
{
public:
DrawPadCanvasXmlHandler();
@@ -371,9 +373,9 @@ void DrawPadCanvas::backupPage()
while (m_pageBackups.last() != currentBackup) {
m_pageBackups.removeLast();
}
- while (m_pageBackups.count() >= (5 + 1)) {
+ while (m_pageBackups.count() >= (PAGE_BACKUPS + 1)) {
m_pageBackups.removeFirst();
}
m_pageBackups.append(new Page(*(m_pages.current())));