Kaydet (Commit) cdd36980 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

repaint for every change when using formulas in color scales

Change-Id: I1eb42ac75228dee00079c86e7c378efb72f16e28
üst fc48c494
...@@ -59,6 +59,7 @@ public: ...@@ -59,6 +59,7 @@ public:
bool GetMin() const; bool GetMin() const;
bool GetMax() const; bool GetMax() const;
bool GetPercent() const; bool GetPercent() const;
bool HasFormula() const;
void SetMin(bool bMin); void SetMin(bool bMin);
void SetMax(bool bMax); void SetMax(bool bMax);
void SetPercent(bool bPercent); void SetPercent(bool bPercent);
......
...@@ -104,6 +104,11 @@ bool ScColorScaleEntry::GetPercent() const ...@@ -104,6 +104,11 @@ bool ScColorScaleEntry::GetPercent() const
return mbPercent; return mbPercent;
} }
bool ScColorScaleEntry::HasFormula() const
{
return mpCell;
}
void ScColorScaleEntry::SetMin(bool bMin) void ScColorScaleEntry::SetMin(bool bMin)
{ {
mbMin = bMin; mbMin = bMin;
...@@ -369,7 +374,13 @@ bool ScColorScaleFormat::CheckEntriesForRel(const ScRange& rRange) const ...@@ -369,7 +374,13 @@ bool ScColorScaleFormat::CheckEntriesForRel(const ScRange& rRange) const
for(const_iterator itr = begin(); itr != end(); ++itr) for(const_iterator itr = begin(); itr != end(); ++itr)
{ {
if(itr->GetMin() || itr->GetMax()) if(itr->GetMin() || itr->GetMax())
{
bNeedUpdate = true; bNeedUpdate = true;
break;
}
if(itr->HasFormula())
return true;
} }
// TODO: check also if the changed value is the new min/max // TODO: check also if the changed value is the new min/max
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment