X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6f2a55e34ab1f8fa99dfd2f7ca5488685395db28..c6e62f74fcac5b62889b59e7ce7a41d0ce884d7b:/src/generic/tbarsmpl.cpp diff --git a/src/generic/tbarsmpl.cpp b/src/generic/tbarsmpl.cpp index d439947bb5..88f45ba452 100644 --- a/src/generic/tbarsmpl.cpp +++ b/src/generic/tbarsmpl.cpp @@ -303,8 +303,8 @@ bool wxToolBarSimple::Realize() m_lastX = m_xMargin; m_lastY += maxToolHeight + m_toolPacking; } - tool->m_x = (m_lastX + (maxToolWidth - tool->GetWidth())/2.0); - tool->m_y = (m_lastY + (maxToolHeight - tool->GetHeight())/2.0); + tool->m_x = (wxCoord)(m_lastX + (maxToolWidth - tool->GetWidth())/2.0); + tool->m_y = (wxCoord)(m_lastY + (maxToolHeight - tool->GetHeight())/2.0); m_lastX += maxToolWidth + m_toolPacking; } @@ -316,8 +316,8 @@ bool wxToolBarSimple::Realize() m_lastX += (maxToolWidth + m_toolPacking); m_lastY = m_yMargin; } - tool->m_x = (m_lastX + (maxToolWidth - tool->GetWidth())/2.0); - tool->m_y = (m_lastY + (maxToolHeight - tool->GetHeight())/2.0); + tool->m_x = (wxCoord)(m_lastX + (maxToolWidth - tool->GetWidth())/2.0); + tool->m_y = (wxCoord)(m_lastY + (maxToolHeight - tool->GetHeight())/2.0); m_lastY += maxToolHeight + m_toolPacking; }