From 1f859c04707ebb8c12879e6c1f06098a75b8aab3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sun, 27 Apr 2008 20:23:50 +0000 Subject: [PATCH] fixes bug #2169 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25221 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/backgrounds/BackgroundsView.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/preferences/backgrounds/BackgroundsView.cpp b/src/preferences/backgrounds/BackgroundsView.cpp index f3a25cd135..46de0a488f 100644 --- a/src/preferences/backgrounds/BackgroundsView.cpp +++ b/src/preferences/backgrounds/BackgroundsView.cpp @@ -602,7 +602,8 @@ BackgroundsView::Save() if (fCurrentInfo != NULL) { if (fWorkspaceMenu->FindItem(kMsgCurrentWorkspace)->IsMarked()) { - if (fCurrentInfo->fWorkspace != workspaceMask) { + if (fCurrentInfo->fWorkspace & workspaceMask + && fCurrentInfo->fWorkspace != workspaceMask) { fCurrentInfo->fWorkspace = fCurrentInfo->fWorkspace ^ workspaceMask; if (fLastImageIndex > -1) { @@ -612,7 +613,7 @@ BackgroundsView::Save() fCurrentInfo->fCacheMode); fCurrent->Add(fCurrentInfo); } - } else { + } else if (fCurrentInfo->fWorkspace == workspaceMask) { if (fLastImageIndex > -1) { fCurrentInfo->fTextWidgetLabelOutline = textWidgetLabelOutline;