Skip to content

Commit

Permalink
CurveWidget: add fix from master
Browse files Browse the repository at this point in the history
  • Loading branch information
olear committed Jun 3, 2016
1 parent e3157b0 commit bcf2466
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Gui/CurveWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,11 @@ CurveWidget::resizeGL(int width,
height = 1;
}
glViewport (0, 0, width, height);
_imp->zoomCtx.setScreenSize(width, height);

// Width and height may be 0 when tearing off a viewer tab to another panel
if ( (width > 0) && (height > 0) ) {
_imp->zoomCtx.setScreenSize(width, height);
}

if (height == 1) {
//don't do the following when the height of the widget is irrelevant
Expand Down

0 comments on commit bcf2466

Please sign in to comment.