diff --git a/aegisub/src/base_grid.cpp b/aegisub/src/base_grid.cpp index 4692342bc..0e7432f36 100644 --- a/aegisub/src/base_grid.cpp +++ b/aegisub/src/base_grid.cpp @@ -66,6 +66,7 @@ BaseGrid::BaseGrid(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wx bmp = NULL; holding = false; byFrame = false; + lineHeight = 1; // non-zero to avoid div by 0 // Set scrollbar scrollBar = new wxScrollBar(this,GRID_SCROLLBAR,wxDefaultPosition,wxDefaultSize,wxSB_VERTICAL);