Skip to content

Commit

Permalink
Restore normal window state before performing "Fit Viewport around Im…
Browse files Browse the repository at this point in the history
…age"

Fixes 49
  • Loading branch information
tannerhelland committed Nov 17, 2012
1 parent a01c5d2 commit a677a16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Forms/VBP_FormMain.frm
Original file line number Diff line number Diff line change
Expand Up @@ -1971,6 +1971,7 @@ Private Sub MnuFitOnScreen_Click()
End Sub

Private Sub MnuFitWindowToImage_Click()
If (FormMain.ActiveForm.WindowState = vbMaximized) Or (FormMain.ActiveForm.WindowState = vbMinimized) Then FormMain.ActiveForm.WindowState = vbNormal
FitWindowToImage
End Sub

Expand Down

0 comments on commit a677a16

Please sign in to comment.