aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2003-03-01 22:53:26 +0000
committernyamatongwe <unknown>2003-03-01 22:53:26 +0000
commitde0173a13cec6a3f5ccceb50482402a2fad39c71 (patch)
tree55c2a27692e88e427e80e1332348835d036e0682
parent766d73c41cc6d2eb9df06ad437aafd20c6af28c6 (diff)
downloadscintilla-mirror-de0173a13cec6a3f5ccceb50482402a2fad39c71.tar.gz
Protecting against accessing unmapped windows in initial size
determination.
-rw-r--r--gtk/ScintillaGTK.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index 28013d48e..7a2bfa458 100644
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -1147,8 +1147,9 @@ void ScintillaGTK::Resize(int width, int height) {
alloc.height = 0;
}
gtk_widget_size_allocate(GTK_WIDGET(PWidget(scrollbarv)), &alloc);
-
- ChangeSize();
+ if (GTK_WIDGET_MAPPED(PWidget(wMain))) {
+ ChangeSize();
+ }
}
static void SetAdjustmentValue(GtkObject *object, int value) {