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