private void HandlePintaCoreActionsViewZoomComboBoxComboBoxChanged(object sender, EventArgs e)
{
if (suspend_zoom_change)
return;
string text = PintaCore.Actions.View.ZoomComboBox.ComboBox.ActiveText;
if (text == "Window") {
PintaCore.Actions.View.ZoomToWindow.Activate ();
return;
}
text = text.Trim ('%');
double percent;
if (!double.TryParse (text, out percent))
return;
percent = Math.Min (percent, 3600);
percent = percent / 100.0;
PintaCore.Workspace.Scale = percent;
}