diff options
author | Oliver Specht <os@openoffice.org> | 2001-02-28 10:51:43 +0000 |
---|---|---|
committer | Oliver Specht <os@openoffice.org> | 2001-02-28 10:51:43 +0000 |
commit | 6b72e497a13974d093f220c7b4370536ee875d7b (patch) | |
tree | 35227a230a952e40ac450c736a98514f9e4699af /sw/source/ui/config | |
parent | 9925e4c327e8c115e70a8e964d4953a4844ff75e (diff) |
#83363# cursor config corrected
Diffstat (limited to 'sw/source/ui/config')
-rw-r--r-- | sw/source/ui/config/usrpref.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/ui/config/usrpref.cxx b/sw/source/ui/config/usrpref.cxx index 0c1e43f82c9c..f87ba3c9bb8c 100644 --- a/sw/source/ui/config/usrpref.cxx +++ b/sw/source/ui/config/usrpref.cxx @@ -2,9 +2,9 @@ * * $RCSfile: usrpref.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: os $ $Date: 2001-02-13 09:52:11 $ + * last change: $Author: os $ $Date: 2001-02-28 11:51:43 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -600,8 +600,8 @@ void SwCursorConfig::Commit() switch(nProp) { case 0: bSet = rParent.IsShadowCursor(); break;// "DirectCursor/UseDirectCursor", - case 1: pValues[nProp] <<= rParent.GetShdwCrsrColor().GetColor(); break;// "DirectCursor/Insert", - case 2: pValues[nProp] <<= (sal_Int32)rParent.GetShdwCrsrFillMode(); break;// "DirectCursor/Color", + case 1: pValues[nProp] <<= (sal_Int32)rParent.GetShdwCrsrFillMode(); break;// "DirectCursor/Insert", + case 2: pValues[nProp] <<= rParent.GetShdwCrsrColor().GetColor(); break;// "DirectCursor/Color", case 3: bSet = rParent.IsCursorInProtectedArea(); break;// "Option/ProtectedArea" } if(nProp == 0 || nProp == 3 ) @@ -621,7 +621,7 @@ void SwCursorConfig::Load() DBG_ASSERT(aValues.getLength() == aNames.getLength(), "GetProperties failed") if(aValues.getLength() == aNames.getLength()) { - Size aSnap(rParent.GetSnapSize()); + for(int nProp = 0; nProp < aNames.getLength(); nProp++) { if(pValues[nProp].hasValue()) @@ -635,13 +635,13 @@ void SwCursorConfig::Load() switch(nProp) { case 0: rParent.SetShadowCursor(bSet); break;// "DirectCursor/UseDirectCursor", - case 1: rParent.SetShdwCrsrColor(nSet); break;// "DirectCursor/Insert", - case 2: rParent.SetShdwCrsrFillMode((BYTE)nSet); break;// "DirectCursor/Color", + case 1: rParent.SetShdwCrsrFillMode((BYTE)nSet); break;// "DirectCursor/Insert", + case 2: rParent.SetShdwCrsrColor(nSet); break;// "DirectCursor/Color", case 3: rParent.SetCursorInProtectedArea(bSet); break;// "Option/ProtectedArea" } } } - rParent.SetSnapSize(aSnap); + } } /*-- 28.09.00 09:55:33--------------------------------------------------- |