]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/tbar95.cpp
Restored the accidentally deleted "return true;" at the end of the Show method from...
[wxWidgets.git] / src / msw / tbar95.cpp
index 1fce389dd39a18d8ab1ea1ecfec928844d845444..754543b9329671da41bb2608d9d81ca36ef8fac6 100644 (file)
@@ -599,7 +599,8 @@ bool wxToolBar::Realize()
         sizeBmp.x = m_defaultWidth;
         sizeBmp.y = m_defaultHeight;
 
-        const wxCoord totalBitmapWidth = m_defaultWidth * nTools,
+        const wxCoord totalBitmapWidth  = m_defaultWidth *
+                                          wx_truncate_cast(wxCoord, nTools),
                       totalBitmapHeight = m_defaultHeight;
 
         // Create a bitmap and copy all the tool bitmaps to it