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 /svx | |
parent | 6116f37372630740b7a10339b4b43773d7f24bad (diff) |
wrong border extraction mechanism
Change-Id: I70925b9e8f5eb0e735200e2f57a892ada9fad379
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/SvxColorValueSet.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
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); } |