Skip to content

Commit

Permalink
Division by zero
Browse files Browse the repository at this point in the history
  • Loading branch information
berryzplus committed Jan 20, 2021
1 parent 1fc1294 commit bb3be3d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sakura_core/cmd/CViewCommander_Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,11 @@ void CViewCommander::Command_TILE_H( void )
// To Here Jul. 28, 2002 genta
count++;
}
if (count == 0) {
delete[] phwndArr;
delete[] pEditNodeArr;
return;
}
int width = (rcDesktop.right - rcDesktop.left ) / count;
for(i = 0; i < count; ++i ){
// Jul. 21, 2002 genta
Expand Down

0 comments on commit bb3be3d

Please sign in to comment.