diff options
author | Oliver Specht <oliver.specht@cib.de> | 2015-12-10 12:22:07 +0100 |
---|---|---|
committer | Oliver Specht <oliver.specht@cib.de> | 2015-12-11 06:42:20 +0000 |
commit | e5246a6b679cfd15ba9ec6db23448066f34c7c08 (patch) | |
tree | 3ae6242e7cbca180b4a2065a97015a316ff52201 /include/svtools/valueset.hxx | |
parent | a5fb58caa0f941caacb1fff78c22285bb7f63026 (diff) |
tdf#96382: background color is not applied unintentionally
background color attribute should only be applied in a dialog
if the user selects it
Change-Id: Idf03840f7332a8cdbbfd616ce47ac26b3602d840
Reviewed-on: https://gerrit.libreoffice.org/20592
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
Tested-by: Oliver Specht <oliver.specht@cib.de>
Diffstat (limited to 'include/svtools/valueset.hxx')
-rw-r--r-- | include/svtools/valueset.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/svtools/valueset.hxx b/include/svtools/valueset.hxx index 30aaffe6834e..e4fac32860f0 100644 --- a/include/svtools/valueset.hxx +++ b/include/svtools/valueset.hxx @@ -212,6 +212,7 @@ private: long mnUserItemWidth; long mnUserItemHeight; sal_uInt16 mnSelItemId; + sal_uInt16 mnSavedItemId; sal_uInt16 mnHighItemId; sal_uInt16 mnCols; sal_uInt16 mnCurCol; @@ -349,6 +350,8 @@ public: { return mnSelItemId; } + void SaveValue() { mnSavedItemId = GetSelectItemId(); } + sal_Int32 GetSavedValue() const { return mnSavedItemId; } bool IsItemSelected( sal_uInt16 nItemId ) const { return !mbNoSelection && (nItemId == mnSelItemId); |