Kaydet (Commit) 923a8604 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Avoid unnecessary bad downcast (pDev can be VirtualDevice)

Change-Id: I9c3a6afea188d04c0d31d5685468b3d45a342840
üst e956e648
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment