diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/control/edit.cxx | 8 | ||||
-rw-r--r-- | vcl/source/window/splitwin.cxx | 3 |
2 files changed, 2 insertions, 9 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index 8d3bfa665596..a1671d70bb59 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -532,7 +532,7 @@ void Edit::ImplRepaint(vcl::RenderContext& rRenderContext, const tools::Rectangl else rRenderContext.SetTextFillColor(IsControlBackground() ? GetControlBackground() : rStyleSettings.GetFieldColor()); - ImplPaintBorder(rRenderContext, 0, GetOutputSizePixel().Width()); + ImplPaintBorder(rRenderContext); bool bDrawSelection = maSelection.Len() && (HasFocus() || (GetStyle() & WB_NOHIDESELECTION) || mbActivePopup); @@ -1000,16 +1000,12 @@ void Edit::ImplClearBackground(vcl::RenderContext& rRenderContext, const tools:: } } -void Edit::ImplPaintBorder(vcl::RenderContext const & rRenderContext, long nXStart, long nXEnd) +void Edit::ImplPaintBorder(vcl::RenderContext const & rRenderContext) { // this is not needed when double-buffering if (SupportsDoubleBuffering()) return; - tools::Rectangle aRect(Point(), GetOutputSizePixel()); - aRect.SetLeft( nXStart ); - aRect.SetRight( nXEnd ); - if (ImplUseNativeBorder(rRenderContext, GetStyle()) || IsPaintTransparent()) { // draw the inner part by painting the whole control using its border window diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx index 42479871c8a4..a0a2be3fb4e7 100644 --- a/vcl/source/window/splitwin.cxx +++ b/vcl/source/window/splitwin.cxx @@ -1390,7 +1390,6 @@ Size SplitWindow::CalcLayoutSizePixel( const Size& aNewSize ) if ( i == mpMainSet->mvItems.size() ) { long nDelta = 0; - Point aPos = GetPosPixel(); long nCurSize; if ( mbHorz ) @@ -1410,7 +1409,6 @@ Size SplitWindow::CalcLayoutSizePixel( const Size& aNewSize ) aSize.AdjustHeight(nDelta ); break; case WindowAlign::Bottom: - aPos.AdjustY( -nDelta ); aSize.AdjustHeight(nDelta ); break; case WindowAlign::Left: @@ -1418,7 +1416,6 @@ Size SplitWindow::CalcLayoutSizePixel( const Size& aNewSize ) break; case WindowAlign::Right: default: - aPos.AdjustX( -nDelta ); aSize.AdjustWidth(nDelta ); break; } |