Permalink
Browse files

minor fix

  • Loading branch information...
1 parent bd83de7 commit 9340349d90ccb8238aa83b3051af24a1801846de @pchilds committed Nov 5, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 gtk2plot/gtkplotlinear.c
  2. +1 −1 gtk3plot/gtkplotlinear.c
View
@@ -4172,7 +4172,7 @@ static gboolean gtk_plot_linear_button_release(GtkWidget *widget, GdkEventButton
{
if ((event->x)>=xw-11)
{
- if (((plot->zmode)&(GTK_PLOT_LINEAR_ZOOM_DRG|GTK_PLOT_LINEAR_ZOOM_OUT))==0) {(plot->zmode)&=!GTK_PLOT_LINEAR_ZOOM_SGL; (plot->zmode)|=GTK_PLOT_LINEAR_ZOOM_DRG;}
+ if (((plot->zmode)&(GTK_PLOT_LINEAR_ZOOM_DRG|GTK_PLOT_LINEAR_ZOOM_OUT))==0) {(plot->zmode)&=(~GTK_PLOT_LINEAR_ZOOM_SGL); (plot->zmode)|=GTK_PLOT_LINEAR_ZOOM_DRG;}
else (plot->zmode)--;
}
else
View
@@ -4136,7 +4136,7 @@ static gboolean gtk_plot_linear_button_release(GtkWidget *widget, GdkEventButton
{
if ((event->x)>=xw-11)
{
- if (((plot->zmode)&(GTK_PLOT_LINEAR_ZOOM_DRG|GTK_PLOT_LINEAR_ZOOM_OUT))==0) {(plot->zmode)&=!GTK_PLOT_LINEAR_ZOOM_SGL; (plot->zmode)|=GTK_PLOT_LINEAR_ZOOM_DRG;}
+ if (((plot->zmode)&(GTK_PLOT_LINEAR_ZOOM_DRG|GTK_PLOT_LINEAR_ZOOM_OUT))==0) {(plot->zmode)&=(~GTK_PLOT_LINEAR_ZOOM_SGL); (plot->zmode)|=GTK_PLOT_LINEAR_ZOOM_DRG;}
else (plot->zmode)--;
}
else

0 comments on commit 9340349

Please sign in to comment.