Skip to content

Commit

Permalink
Avoid reshape windows with 0x0
Browse files Browse the repository at this point in the history
  • Loading branch information
Lecrapouille committed Jan 10, 2024
1 parent 1090bad commit f7ec2e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/gdcef/gdcef/src/gdbrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ void GDBrowserView::navigateForward()
//------------------------------------------------------------------------------
void GDBrowserView::reshape(int w, int h)
{
if (w <= 0) { w = 2; }
if (h <= 0) { h = 2; }
BROWSER_DEBUG_VAL(w << " x " << h);

m_width = float(w);
Expand Down

0 comments on commit f7ec2e1

Please sign in to comment.