[Libreoffice-commits] core.git: sc/source
Stephan Bergmann
sbergman at redhat.com
Wed Feb 25 05:52:29 PST 2015
sc/source/ui/view/gridwin4.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 923a8604aa631dbfb9c62f8fa9bef71dc8addcef
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Feb 25 14:50:47 2015 +0100
Avoid unnecessary bad downcast (pDev can be VirtualDevice)
Change-Id: I9c3a6afea188d04c0d31d5685468b3d45a342840
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index 07a5d62..8c0805d 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -130,7 +130,7 @@ static void lcl_DrawOneFrame( OutputDevice* pDev, const Rectangle& rInnerPixel,
long nButtonY = bTextBelow ? aInner.Bottom() : aOuter.Top();
- ScDDComboBoxButton aComboButton(static_cast<vcl::Window*>(pDev));
+ ScDDComboBoxButton aComboButton(pDev);
aComboButton.SetOptSizePixel();
long nBWidth = ( aComboButton.GetSizePixel().Width() * rZoomY.GetNumerator() )
/ rZoomY.GetDenominator();
More information about the Libreoffice-commits
mailing list