diff --git a/src/gtk/scrolwin.cpp b/src/gtk/scrolwin.cpp index e93f017032..245ecc7200 100644 --- a/src/gtk/scrolwin.cpp +++ b/src/gtk/scrolwin.cpp @@ -44,6 +44,9 @@ void wxScrollHelper::DoAdjustScrollbar(GtkRange* range, int *lines, int *linesPerPage) { + if (!range) + return; + int upper; int page_size; if (pixelsPerLine > 0 && winSize > 0 && winSize < virtSize) diff --git a/src/richtext/richtextctrl.cpp b/src/richtext/richtextctrl.cpp index 68fd792f2c..f3b1d697f3 100644 --- a/src/richtext/richtextctrl.cpp +++ b/src/richtext/richtextctrl.cpp @@ -196,6 +196,8 @@ wxRichTextCtrl::wxRichTextCtrl(wxWindow* parent, bool wxRichTextCtrl::Create( wxWindow* parent, wxWindowID id, const wxString& value, const wxPoint& pos, const wxSize& size, long style, const wxValidator& validator, const wxString& name) { + style |= wxVSCROLL; + if (!wxTextCtrlBase::Create(parent, id, pos, size, style|wxFULL_REPAINT_ON_RESIZE, validator, name))