Initialize wxTopLevelWindow::DecorSize in wxGTK
Add default ctor for this struct as it was too easy to forget to initialize it otherwise, ending up with bogus values in it, as it happened with wxTLWGeometry::m_decorSize, which resulted in a failure in wxPersistTLW unit test and, probably, real code too.
This commit is contained in:
@@ -112,6 +112,14 @@ public:
|
||||
// size of WM decorations
|
||||
struct DecorSize
|
||||
{
|
||||
DecorSize()
|
||||
{
|
||||
left =
|
||||
right =
|
||||
top =
|
||||
bottom = 0;
|
||||
}
|
||||
|
||||
int left, right, top, bottom;
|
||||
};
|
||||
DecorSize m_decorSize;
|
||||
|
Reference in New Issue
Block a user