summaryrefslogtreecommitdiffstats
path: root/src/desktop.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-03-11 04:02:46 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-03-11 04:02:46 +0000
commit5a3bfc7e9cbf1bac495eb0d6c182c626dce15fde (patch)
tree6659e8232cd1ab77f42ae44333ec65f4fcd2dcc3 /src/desktop.cpp
parentdisplay busy cursor while filling (diff)
downloadinkscape-5a3bfc7e9cbf1bac495eb0d6c182c626dce15fde.tar.gz
inkscape-5a3bfc7e9cbf1bac495eb0d6c182c626dce15fde.zip
fix outline mode toggling with multiple views
(bzr r2599)
Diffstat (limited to 'src/desktop.cpp')
-rw-r--r--src/desktop.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/desktop.cpp b/src/desktop.cpp
index 471ac2a19..d159fbc78 100644
--- a/src/desktop.cpp
+++ b/src/desktop.cpp
@@ -347,7 +347,6 @@ SPDesktop::~SPDesktop() {}
void SPDesktop::setDisplayModeNormal()
{
- prefs_set_int_attribute("options.outlinemode", "value", 0);
SP_CANVAS_ARENA (drawing)->arena->rendermode = RENDERMODE_NORMAL;
canvas->rendermode = RENDERMODE_NORMAL; // canvas needs that for choosing the best buffer size
displayMode = RENDERMODE_NORMAL;
@@ -357,7 +356,6 @@ void SPDesktop::setDisplayModeNormal()
void SPDesktop::setDisplayModeOutline()
{
- prefs_set_int_attribute("options.outlinemode", "value", 1);
SP_CANVAS_ARENA (drawing)->arena->rendermode = RENDERMODE_OUTLINE;
canvas->rendermode = RENDERMODE_OUTLINE; // canvas needs that for choosing the best buffer size
displayMode = RENDERMODE_OUTLINE;
@@ -367,7 +365,7 @@ void SPDesktop::setDisplayModeOutline()
void SPDesktop::displayModeToggle()
{
- if (prefs_get_int_attribute("options.outlinemode", "value", prefs_get_int_attribute("options.startmode", "outline", 0)))
+ if (displayMode == RENDERMODE_OUTLINE)
setDisplayModeNormal();
else
setDisplayModeOutline();