projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wxhtml.rc no longer needed
[wxWidgets.git]
/
src
/
univ
/
notebook.cpp
diff --git
a/src/univ/notebook.cpp
b/src/univ/notebook.cpp
index 252723acd71358232492af6fbb8cace98710b220..c90d042c3972158c88c8ae86860fdef175c5c3e5 100644
(file)
--- a/
src/univ/notebook.cpp
+++ b/
src/univ/notebook.cpp
@@
-1254,9
+1254,14
@@
void wxNotebook::DoSetSize(int x, int y,
int width, int height,
int sizeFlags)
{
int width, int height,
int sizeFlags)
{
- wx
Control::DoSetSize(x, y, width, height, sizeFlags
);
+ wx
Size old_client_size = GetClientSize(
);
- Relayout();
+ wxControl::DoSetSize(x, y, width, height, sizeFlags);
+
+ wxSize new_client_size = GetClientSize();
+
+ if (old_client_size != new_client_size)
+ Relayout();
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------