sc/source/ui/view/gridwin4.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 923a8604aa631dbfb9c62f8fa9bef71dc8addcef Author: Stephan Bergmann <sberg...@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(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits