summaryrefslogtreecommitdiff
path: root/sc/source/ui/condformat/condformatdlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/condformat/condformatdlg.cxx')
-rw-r--r--sc/source/ui/condformat/condformatdlg.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/condformat/condformatdlg.cxx b/sc/source/ui/condformat/condformatdlg.cxx
index caf22a5bcdd9..7c4332814ca4 100644
--- a/sc/source/ui/condformat/condformatdlg.cxx
+++ b/sc/source/ui/condformat/condformatdlg.cxx
@@ -232,12 +232,12 @@ void ScCondFormatList::RecalcAll()
item->SetPosPixel(aPoint);
Size aSize = item->GetSizePixel();
if(mbHasScrollBar)
- aSize.Width() = aCtrlSize.Width() - nSrcBarSize;
+ aSize.setWidth( aCtrlSize.Width() - nSrcBarSize );
else
- aSize.Width() = aCtrlSize.Width();
+ aSize.setWidth( aCtrlSize.Width() );
item->SetSizePixel(aSize);
- aPoint.Y() += item->GetSizePixel().Height();
+ aPoint.setY( aPoint.Y() + item->GetSizePixel().Height() );
}
}
@@ -245,7 +245,7 @@ void ScCondFormatList::DoScroll(long nDelta)
{
Point aNewPoint = mpScrollBar->GetPosPixel();
tools::Rectangle aRect(Point(), GetOutputSize());
- aRect.Right() -= mpScrollBar->GetSizePixel().Width();
+ aRect.SetRight( aRect.Right() - mpScrollBar->GetSizePixel().Width() );
Scroll( 0, -nDelta, aRect );
mpScrollBar->SetPosPixel(aNewPoint);
}