Hello.
Currently, the
Mahogany saved whether the frame was iconized or not when the frame was
destructed in the wxMFrame::SavePositionInternal(...) except GTK
version.
But, this makes
trouble for the compose view(wxComposeView which was derived from
wxFrame).
I exit the
Mahogany with the compose view opened but
iconized.
And then when I
executed 'compose a new message' command, I got an exception,
'Integer Divide by Zero' in the
wxLayoutWindow::ScrollToCursor() .
The reason I gues is
like this.
When the 'compose a
new message' is executed, the mahogany creates the composeview and calls
the wxComposeView::InitText() and LayoutEditor::InsertText(...) which finally
calls
wxLayoutWindow::ResizeScrollbars(...),
wxLayoutWindow::ScrollToCursor(...).
In this two
functioins, GetClientSize() can not get the exact client size because the client
is iconzied so that the exception is generated.
I thought it's
better to ignore the iconized state of frame because it give us some
confusing.
I'd like the
Mahogany to show the windows as normal state even if I closed the Mahogany with
the windows opened.
To restore maxmized
state is good.
-Jeongkyu
Kim
