X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fdock_navigator.cpp;h=f002b66d6d42064d5fef442a2271146b1608eb0c;hb=c3ad95144d148602f672e95ddda1f18fc35502f8;hp=a8ca5c7a40bf2f2efb18cafa01b8cbc6ad8b3c61;hpb=837b63e9fb829d66d43f4f169861f8979f76820d;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/dock_navigator.cpp b/synfig-studio/trunk/src/gtkmm/dock_navigator.cpp index a8ca5c7..f002b66 100644 --- a/synfig-studio/trunk/src/gtkmm/dock_navigator.cpp +++ b/synfig-studio/trunk/src/gtkmm/dock_navigator.cpp @@ -255,7 +255,7 @@ static double zoom_to_unit(double f) }else return -999999.0; } -bool studio::Widget_NavView::on_expose_draw(GdkEventExpose *exp) +bool studio::Widget_NavView::on_expose_draw(GdkEventExpose */*exp*/) { //print out the zoom //HACK kind of... @@ -462,7 +462,7 @@ bool studio::Widget_NavView::on_mouse_event(GdkEvent * e) float max = abs((br[0]-tl[0]) / drawto.get_width()); - if((prev->get_width() / drawto.get_width()) < (prev->get_height() / drawto.get_height())) + if((float(prev->get_width()) / drawto.get_width()) < (float(prev->get_height()) / drawto.get_height())) max = abs((br[1]-tl[1]) / drawto.get_height()); float signx = (br[0]-tl[0]) < 0 ? -1 : 1;