diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2019-10-28 11:38:20 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2019-10-28 15:18:43 +0100 |
commit | 586c00f7ba59b0c75ed2dd8ecf241a4d81c82331 (patch) | |
tree | e72b180769b5b236eb40604e7e1a33bb329a37cb /sw | |
parent | 9b8052bba91ed616de77006cd0d3dee3965caece (diff) |
jsdialogs: allow to use transparent highlight
Change-Id: Ib19dbbf3c13afd20bee47226704887f899c99b5d
Reviewed-on: https://gerrit.libreoffice.org/81597
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/shells/textsh1.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx index 7ff0435665d3..0788f49e52a3 100644 --- a/sw/source/uibase/shells/textsh1.cxx +++ b/sw/source/uibase/shells/textsh1.cxx @@ -1219,7 +1219,10 @@ void SwTextShell::Execute(SfxRequest &rReq) if (SfxItemState::SET == pArgs->GetItemState(SID_ATTR_COLOR_STR, false, &pColorStringItem)) { sColor = static_cast<const SfxStringItem*>(pColorStringItem)->GetValue(); - aSet = Color(sColor.toInt32(16)); + if (sColor == "transparent") + aSet = COL_TRANSPARENT; + else + aSet = Color(sColor.toInt32(16)); } else if (pItem) aSet = static_cast<const SvxColorItem*>(pItem)->GetValue(); |