[Libreoffice-commits] core.git: svtools/source
Jürgen Schmidt
jsc at apache.org
Thu Jun 27 05:38:21 PDT 2013
svtools/source/table/tablecontrol_impl.cxx | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit 5080a76abbbb9f965bf9658e5f543188961d9ff8
Author: Jürgen Schmidt <jsc at apache.org>
Date: Thu Jun 27 10:57:58 2013 +0000
Resolves: #i122586# recalcuate width when scrolling to last column
(cherry picked from commit febd0946e8c2686f0a679d3f32fbb39f5ef1c295)
Change-Id: Ia1aba1eddf9035504677d10a7414f9a498b952e1
diff --git a/svtools/source/table/tablecontrol_impl.cxx b/svtools/source/table/tablecontrol_impl.cxx
index cf89b13..e27dbac 100644
--- a/svtools/source/table/tablecontrol_impl.cxx
+++ b/svtools/source/table/tablecontrol_impl.cxx
@@ -2063,6 +2063,7 @@ namespace svt { namespace table
case TableAreaAll:
m_pDataWindow->Invalidate();
+ m_pDataWindow->GetParent()->Invalidate( INVALIDATE_TRANSPARENT );
break;
}
}
@@ -2343,7 +2344,10 @@ namespace svt { namespace table
m_pDataWindow->Scroll( 0, (long)-nPixelDelta, aDataArea, SCROLL_CLIP | SCROLL_UPDATE | SCROLL_CHILDREN);
}
else
+ {
m_pDataWindow->Invalidate( INVALIDATE_UPDATE );
+ m_pDataWindow->GetParent()->Invalidate( INVALIDATE_TRANSPARENT );
+ }
// update the position at the vertical scrollbar
if ( m_pVScroll != NULL )
@@ -2420,7 +2424,10 @@ namespace svt { namespace table
m_pDataWindow->Scroll( nPixelDelta, 0, aDataArea, SCROLL_CLIP | SCROLL_UPDATE );
}
else
+ {
m_pDataWindow->Invalidate( INVALIDATE_UPDATE );
+ m_pDataWindow->GetParent()->Invalidate( INVALIDATE_TRANSPARENT );
+ }
// update the position at the horizontal scrollbar
if ( m_pHScroll != NULL )
More information about the Libreoffice-commits
mailing list