author | leseb <leseb> | 2002-06-19 06:08:54 (UTC) |
---|---|---|
committer | leseb <leseb> | 2002-06-19 06:08:54 (UTC) |
commit | b83e9d1f794fdd6089beda10697243bb087e3d0a (patch) (unidiff) | |
tree | bdd278f80903fcc9463c3623645967fef8e787fa /noncore/graphics | |
parent | 3e7ae42a203c31d44e0c24a29a9a63772ef56046 (diff) | |
download | opie-b83e9d1f794fdd6089beda10697243bb087e3d0a.zip opie-b83e9d1f794fdd6089beda10697243bb087e3d0a.tar.gz opie-b83e9d1f794fdd6089beda10697243bb087e3d0a.tar.bz2 |
99 undo actions
-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 | |||
@@ -30,6 +30,8 @@ | |||
30 | 30 | ||
31 | #include <zlib.h> | 31 | #include <zlib.h> |
32 | 32 | ||
33 | const int PAGE_BACKUPS = 99; | ||
34 | |||
33 | class DrawPadCanvasXmlHandler: public QXmlDefaultHandler | 35 | class DrawPadCanvasXmlHandler: public QXmlDefaultHandler |
34 | { | 36 | { |
35 | public: | 37 | public: |
@@ -372,7 +374,7 @@ void DrawPadCanvas::backupPage() | |||
372 | m_pageBackups.removeLast(); | 374 | m_pageBackups.removeLast(); |
373 | } | 375 | } |
374 | 376 | ||
375 | while (m_pageBackups.count() >= (5 + 1)) { | 377 | while (m_pageBackups.count() >= (PAGE_BACKUPS + 1)) { |
376 | m_pageBackups.removeFirst(); | 378 | m_pageBackups.removeFirst(); |
377 | } | 379 | } |
378 | 380 | ||