summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-04-01 14:08:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-04-01 14:15:25 +0100
commit0a40cec9fb760d6d66480d2ba41151d65cf8675b (patch)
tree28437148a29d042f2b1ed8492fb5db3289a1e23c /svtools
parent0f22f933b940431c1ce5e55485ad3e11bca8d5a9 (diff)
Related: #i119403# take transparency into account in both Invalidates
which would seem to be a good idea Change-Id: Id6981851f7ecacab60247af1ef38e06ebb9a7f82
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/table/tablecontrol_impl.cxx12
-rw-r--r--svtools/source/table/tablecontrol_impl.hxx2
2 files changed, 11 insertions, 3 deletions
diff --git a/svtools/source/table/tablecontrol_impl.cxx b/svtools/source/table/tablecontrol_impl.cxx
index d54cb3f33ffb..53258d25af67 100644
--- a/svtools/source/table/tablecontrol_impl.cxx
+++ b/svtools/source/table/tablecontrol_impl.cxx
@@ -2127,7 +2127,14 @@ namespace svt { namespace table
impl_getCellRect( m_nCurColumn, _nPrevRow, aCellRect );
aInvalidateRect.Bottom() = aCellRect.Bottom();
}
- m_pDataWindow->Invalidate( aInvalidateRect );
+
+ invalidateRect(aInvalidateRect);
+ }
+
+ void TableControl_Impl::invalidateRect(const Rectangle &rInvalidateRect)
+ {
+ m_pDataWindow->Invalidate( rInvalidateRect,
+ m_pDataWindow->GetControlBackground().GetTransparency() ? INVALIDATE_TRANSPARENT : 0 );
}
//------------------------------------------------------------------------------------------------------------------
@@ -2162,8 +2169,7 @@ namespace svt { namespace table
if ( i_lastRow == ROW_INVALID )
aInvalidateRect.Bottom() = m_pDataWindow->GetOutputSizePixel().Height();
- m_pDataWindow->Invalidate( aInvalidateRect,
- m_pDataWindow->GetControlBackground().GetTransparency() ? INVALIDATE_TRANSPARENT : 0 );
+ invalidateRect(aInvalidateRect);
}
//------------------------------------------------------------------------------
diff --git a/svtools/source/table/tablecontrol_impl.hxx b/svtools/source/table/tablecontrol_impl.hxx
index 21b43ae73535..d8bf51f94b30 100644
--- a/svtools/source/table/tablecontrol_impl.hxx
+++ b/svtools/source/table/tablecontrol_impl.hxx
@@ -215,6 +215,8 @@ namespace svt { namespace table
/** returns the position of the current row in the selection vector */
int getRowSelectedNumber(const ::std::vector<RowPos>& selectedRows, RowPos current);
+ void invalidateRect(const Rectangle &rInvalidateRect);
+
/** ??? */
void invalidateSelectedRegion( RowPos _nPrevRow, RowPos _nCurRow );