diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-11-20 12:48:18 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-11-20 12:51:13 +0000 |
commit | a5b4c3dc7300e38621b97b6ddfbc6adf6a9792cf (patch) | |
tree | 58a5ec60e38f044bbad654992820ca9a5f60a1e5 | |
parent | 6116f37372630740b7a10339b4b43773d7f24bad (diff) |
wrong border extraction mechanism
Change-Id: I70925b9e8f5eb0e735200e2f57a892ada9fad379
-rw-r--r-- | svtools/source/control/valueset.cxx | 10 | ||||
-rw-r--r-- | svx/source/tbxctrls/SvxColorValueSet.cxx | 10 |
2 files changed, 6 insertions, 14 deletions
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index 75a8d5374c54..dfcad5d4f6e7 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -105,13 +105,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeValueSet(Window *pParent, V { WinBits nWinBits = WB_TABSTOP; - VclBuilder::stringmap::iterator aFind = rMap.find(OString("border")); - if (aFind != rMap.end()) - { - if (toBool(aFind->second)) - nWinBits |= WB_BORDER; - rMap.erase(aFind); - } + OString sBorder = VclBuilder::extractCustomProperty(rMap); + if (!sBorder.isEmpty()) + nWinBits |= WB_BORDER; return new ValueSet(pParent, nWinBits); } diff --git a/svx/source/tbxctrls/SvxColorValueSet.cxx b/svx/source/tbxctrls/SvxColorValueSet.cxx index 9c558c29f069..7f4924e4f45d 100644 --- a/svx/source/tbxctrls/SvxColorValueSet.cxx +++ b/svx/source/tbxctrls/SvxColorValueSet.cxx @@ -33,13 +33,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSvxColorValueSet(Window *pP { WinBits nWinBits = WB_TABSTOP; - VclBuilder::stringmap::iterator aFind = rMap.find(OString("border")); - if (aFind != rMap.end()) - { - if (toBool(aFind->second)) - nWinBits |= WB_BORDER; - rMap.erase(aFind); - } + OString sBorder = VclBuilder::extractCustomProperty(rMap); + if (!sBorder.isEmpty()) + nWinBits |= WB_BORDER; return new SvxColorValueSet(pParent, nWinBits); } |