Files
wxWidgets/src/osx/carbon
Vadim Zeitlin 0738b901b1 Fix discrepancy between different ways of measuring text extents under Mac.
wxGraphicsContext::GetTextExtent() didn't round the returned double result to
int but truncated it instead and so returned different extent than
GetPartialTextExtents() which did round it up.

Moreover, wxGraphicsContext::GetPartialTextExtents() didn't round it up
correctly: it wrongly added 0.5 to the value still stored as double and which
was hence rounded up (correctly, this time) when converted to int in
wxDC::GetPartialTextExtents().

These two errors combined to produce difference of up to 2 pixels between the
last offset returned by wxDC::GetPartialTextExtents() and the total string
extent returned by wxDC::GetTextExtent() which thoroughly confused the code in
wxControlBase::DoEllipsizeSingleLine() (and probably not only there).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-10 00:13:57 +00:00
..
2009-10-04 00:21:29 +00:00
2009-07-23 20:30:22 +00:00
2009-07-03 06:49:27 +00:00
2009-07-23 20:30:22 +00:00
2009-07-23 20:30:22 +00:00
2009-01-25 15:12:21 +00:00
2009-03-20 13:56:57 +00:00
2008-09-02 16:53:23 +00:00
2009-01-17 13:38:04 +00:00
2008-09-02 16:53:23 +00:00
2008-09-02 16:53:23 +00:00
2009-07-23 20:30:22 +00:00
2009-10-31 23:00:04 +00:00
2009-09-18 16:16:30 +00:00