adjust get-text-extent on empty string for Windows
svn: r6678
This commit is contained in:
parent
ff1b9feb86
commit
31f02e194d
|
@ -2220,7 +2220,11 @@ void wxDC::GetTextExtent(const char *string, double *x, double *y,
|
|||
DoneDC(dc);
|
||||
|
||||
*x = (double)tx;
|
||||
*y = (double)ty;
|
||||
if (!len && !ty) {
|
||||
*y = (double)tm.tmHeight;;
|
||||
} else {
|
||||
*y = (double)ty;
|
||||
}
|
||||
if (descent) *descent = (double)tm.tmDescent;
|
||||
if (topSpace) *topSpace = (double)tm.tmInternalLeading;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user