summaryrefslogtreecommitdiff
path: root/include/tools/color.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/tools/color.hxx')
-rw-r--r--include/tools/color.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/tools/color.hxx b/include/tools/color.hxx
index ea921878e48c..92ea21011dbb 100644
--- a/include/tools/color.hxx
+++ b/include/tools/color.hxx
@@ -112,6 +112,11 @@ public:
sal_uInt8((rBColor.getBlue() * 255.0) + 0.5));
}
+ bool operator<(const Color& b) const
+ {
+ return mnColor < b.GetColor();
+ }
+
void SetRed( sal_uInt8 nRed );
sal_uInt8 GetRed() const { return COLORDATA_RED( mnColor ); }
void SetGreen( sal_uInt8 nGreen );