Fix harmless float to int conversion warnings in wxOSX build.

Add casts to truncate the values as the code intended anyhow.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2010-07-28 11:26:26 +00:00
parent 6178debcd3
commit 4a49fa24c9
3 changed files with 5 additions and 7 deletions

View File

@@ -503,10 +503,8 @@ wxSize wxNSTextViewControl::GetBestSize() const
if (m_textView && [m_textView layoutManager])
{
NSRect rect = [[m_textView layoutManager] usedRectForTextContainer: [m_textView textContainer]];
wxSize size = wxSize(rect.size.width, rect.size.height);
size.x += [m_textView textContainerInset].width;
size.y += [m_textView textContainerInset].height;
return size;
return wxSize((int)(rect.size.width + [m_textView textContainerInset].width),
(int)(rect.size.height + [m_textView textContainerInset].height));
}
return wxSize(0,0);
}