signed/unsigned warning fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -487,7 +487,7 @@ bool wxNSTextViewControl::GetStyle(long position, wxTextAttr& style)
|
|||||||
// NOTE: It appears that other platforms accept GetStyle with the position == length
|
// NOTE: It appears that other platforms accept GetStyle with the position == length
|
||||||
// but that NSTextStorage does not accept length as a valid position.
|
// but that NSTextStorage does not accept length as a valid position.
|
||||||
// Therefore we return the default control style in that case.
|
// Therefore we return the default control style in that case.
|
||||||
if (position < [[m_textView string] length])
|
if (position < (long) [[m_textView string] length])
|
||||||
{
|
{
|
||||||
NSTextStorage* storage = [m_textView textStorage];
|
NSTextStorage* storage = [m_textView textStorage];
|
||||||
font = [[storage attribute:NSFontAttributeName atIndex:position effectiveRange:NULL] autorelease];
|
font = [[storage attribute:NSFontAttributeName atIndex:position effectiveRange:NULL] autorelease];
|
||||||
|
Reference in New Issue
Block a user