diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-06 11:09:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-07 07:09:12 +0100 |
commit | 9a97b9c051735afb3797888d111f1b6b2cab1a83 (patch) | |
tree | fb2118bdc43c4a9d83d25cadf452e020a8143b9b /sw/source/uibase/config/modcfg.cxx | |
parent | b3ee860e523dce3df16350a4053a67f39c2f92f8 (diff) |
use more Color in sw
Change-Id: I51d575c40228bbd2ff384f12da33c1cd8bda2dda
Reviewed-on: https://gerrit.libreoffice.org/50800
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/config/modcfg.cxx')
-rw-r--r-- | sw/source/uibase/config/modcfg.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/uibase/config/modcfg.cxx b/sw/source/uibase/config/modcfg.cxx index 5341cac72c35..f0d9f010b7ab 100644 --- a/sw/source/uibase/config/modcfg.cxx +++ b/sw/source/uibase/config/modcfg.cxx @@ -308,7 +308,7 @@ void SwRevisionConfig::ImplCommit() case 4 : pValues[nProp] <<= lcl_ConvertAttrToCfg(aFormatAttr); break; case 5 : pValues[nProp] <<= aFormatAttr.m_nColor; break; case 6 : pValues[nProp] <<= nMarkAlign; break; - case 7 : pValues[nProp] <<= aMarkColor.GetColor(); break; + case 7 : pValues[nProp] <<= aMarkColor; break; case 8 : pValues[nProp] <<= bShowInlineTooltip; break; } } @@ -356,13 +356,13 @@ void SwRevisionConfig::Load() switch (nProp) { case 0 : lcl_ConvertCfgToAttr(nVal, aInsertAttr); break; - case 1 : aInsertAttr.m_nColor = nVal; break; + case 1 : aInsertAttr.m_nColor = Color(nVal); break; case 2 : lcl_ConvertCfgToAttr(nVal, aDeletedAttr, true); break; - case 3 : aDeletedAttr.m_nColor = nVal; break; + case 3 : aDeletedAttr.m_nColor = Color(nVal); break; case 4 : lcl_ConvertCfgToAttr(nVal, aFormatAttr); break; - case 5 : aFormatAttr.m_nColor = nVal; break; + case 5 : aFormatAttr.m_nColor = Color(nVal); break; case 6 : nMarkAlign = sal::static_int_cast< sal_uInt16, sal_Int32>(nVal); break; - case 7 : aMarkColor = nVal; break; + case 7 : aMarkColor = Color(nVal); break; case 8 : bShowInlineTooltip = *o3tl::doAccess<bool>(pValues[nProp]); } } |