mirror of https://github.com/odrling/Aegisub
Fix crash (div by 0) introduced in r3295, updates #953.
(Blind fix, doesn't happen on Windows.) Originally committed to SVN as r3297.
This commit is contained in:
parent
675afab201
commit
28e974e665
|
@ -66,6 +66,7 @@ BaseGrid::BaseGrid(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wx
|
||||||
bmp = NULL;
|
bmp = NULL;
|
||||||
holding = false;
|
holding = false;
|
||||||
byFrame = false;
|
byFrame = false;
|
||||||
|
lineHeight = 1; // non-zero to avoid div by 0
|
||||||
|
|
||||||
// Set scrollbar
|
// Set scrollbar
|
||||||
scrollBar = new wxScrollBar(this,GRID_SCROLLBAR,wxDefaultPosition,wxDefaultSize,wxSB_VERTICAL);
|
scrollBar = new wxScrollBar(this,GRID_SCROLLBAR,wxDefaultPosition,wxDefaultSize,wxSB_VERTICAL);
|
||||||
|
|
Loading…
Reference in New Issue