From 2338d0f7bcdb2ca35667da4b02dd03ede37e4a65 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sun, 11 Mar 2007 04:02:46 +0000 Subject: [PATCH] fix outline mode toggling with multiple views --- src/desktop.cpp | 4 +--- 1 file changed, 1 insertion(+), 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(); -- 2.30.2