It doesn't make sense to attempt to shorten 1 character long string, so
don't do it. Note that 2 characters strings may be shortened (consider
e.g. "mm" in some typefaces).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66871
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxArrayInt charOffsetsPx;
size_t len = curLine.length();
wxArrayInt charOffsetsPx;
size_t len = curLine.length();
!dc.GetPartialTextExtents(curLine, charOffsetsPx))
return curLine;
!dc.GetPartialTextExtents(curLine, charOffsetsPx))
return curLine;