projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
clarifications about MRU menu workings (patch 1221797)
[wxWidgets.git]
/
src
/
msw
/
stattext.cpp
diff --git
a/src/msw/stattext.cpp
b/src/msw/stattext.cpp
index 124d9e471d935eddd112a910b0a6849d9f7c6360..cc4b995d2d3469654b5d54d026e62d7d2306f68a 100644
(file)
--- a/
src/msw/stattext.cpp
+++ b/
src/msw/stattext.cpp
@@
-143,7
+143,9
@@
wxSize wxStaticText::DoGetBestSize() const
widthTextMax += 2;
#endif // __WXWINCE__
- return wxSize(widthTextMax, heightTextTotal);
+ wxSize best(widthTextMax, heightTextTotal);
+ CacheBestSize(best);
+ return best;
}
void wxStaticText::DoSetSize(int x, int y, int w, int h, int sizeFlags)