fixes for warnings about implicit double -> int conversions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -527,7 +527,7 @@ void wxHtmlTableCell::Layout(int w)
|
||||
{
|
||||
// Assign with, make sure not to drop below minWidth
|
||||
if (maxWidth)
|
||||
m_ColsInfo[i].pixwidth = wpix * (m_ColsInfo[i].maxWidth / (float)maxWidth) + 0.5;
|
||||
m_ColsInfo[i].pixwidth = (int)(wpix * (m_ColsInfo[i].maxWidth / (float)maxWidth) + 0.5);
|
||||
else
|
||||
m_ColsInfo[i].pixwidth = wpix / j;
|
||||
|
||||
@@ -545,7 +545,7 @@ void wxHtmlTableCell::Layout(int w)
|
||||
{
|
||||
if (m_ColsInfo[i].pixwidth > (wpix * (m_ColsInfo[i].maxWidth / (float)maxWidth) + 0.5))
|
||||
{
|
||||
int diff = m_ColsInfo[i].pixwidth - (wpix * m_ColsInfo[i].maxWidth / (float)maxWidth + 0.5);
|
||||
int diff = (int)(m_ColsInfo[i].pixwidth - (wpix * m_ColsInfo[i].maxWidth / (float)maxWidth + 0.5));
|
||||
maxWidth += diff - m_ColsInfo[i].maxWidth;
|
||||
}
|
||||
else
|
||||
@@ -682,7 +682,7 @@ TAG_HANDLER_BEGIN(TABLE, "TABLE,TR,TD,TH")
|
||||
{
|
||||
int width = 0;
|
||||
wxSscanf(wd.c_str(), wxT("%i"), &width);
|
||||
m_Table->SetWidthFloat(m_WParser->GetPixelScale() * width, wxHTML_UNITS_PIXELS);
|
||||
m_Table->SetWidthFloat((int)(m_WParser->GetPixelScale() * width), wxHTML_UNITS_PIXELS);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user