From: Matthew Fernandez Date: Fri, 22 Jul 2022 01:18:00 +0000 (-0700) Subject: smyrna toolboxcallbacks: remove excess white space X-Git-Tag: 5.0.1~29^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=db617727fb16f1ae011f5fcf91add0c7273b2cdf;p=graphviz smyrna toolboxcallbacks: remove excess white space --- diff --git a/cmd/smyrna/gui/toolboxcallbacks.c b/cmd/smyrna/gui/toolboxcallbacks.c index e63f1f7ac..5ddaf1b22 100644 --- a/cmd/smyrna/gui/toolboxcallbacks.c +++ b/cmd/smyrna/gui/toolboxcallbacks.c @@ -15,10 +15,6 @@ #include #include "glmotion.h" - - - - void btnToolZoomOut_clicked(GtkWidget * widget, gpointer user_data) { (void)widget; @@ -70,16 +66,10 @@ void btnToolFit_clicked(GtkWidget * widget, gpointer user_data) float scx, scy, gcx, gcy, z; - - (view->active_camera >= 0) ? (z = view->cameras[view->active_camera]->r) : (z = view->zoom * -1); - - - - gcx = view->bdxLeft / z + (view->bdxRight / z - view->bdxLeft / z) / (float) (2.0); @@ -89,10 +79,7 @@ void btnToolFit_clicked(GtkWidget * widget, gpointer user_data) view->bdyBottom / z) / (float) (2.0); scy = view->clipY1 + (view->clipY2 - view->clipY1) / (float) (2.0); - - if (view->active_camera >= 0) { - view->cameras[view->active_camera]->targetx += (gcx - scx); view->cameras[view->active_camera]->targety += (gcx - scy); } else {