diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-03-11 04:02:46 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-03-11 04:02:46 +0000 |
| commit | 5a3bfc7e9cbf1bac495eb0d6c182c626dce15fde (patch) | |
| tree | 6659e8232cd1ab77f42ae44333ec65f4fcd2dcc3 /src/desktop.cpp | |
| parent | display busy cursor while filling (diff) | |
| download | inkscape-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.cpp | 4 |
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(); |
