From: dooglus Date: Fri, 7 Sep 2007 19:58:47 +0000 (+0000) Subject: Fix a couple of compiler warnings ("passing 'float' for argument 1 to 'void Pango... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=d6c28613bc0ec13307ddc402366a0a9b2d3fb5ff;p=synfig.git Fix a couple of compiler warnings ("passing 'float' for argument 1 to 'void Pango::FontDescription::set_size(int)" twice) git-svn-id: http://svn.voria.com/code@626 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/about.cpp b/synfig-studio/trunk/src/gtkmm/about.cpp index 6c487a7..73091f0 100644 --- a/synfig-studio/trunk/src/gtkmm/about.cpp +++ b/synfig-studio/trunk/src/gtkmm/about.cpp @@ -203,7 +203,7 @@ About::About(): Pango::FontDescription fd = Pango::FontDescription("Sans, 11"); l->set_font_description(fd); l->set_justify(Pango::ALIGN_CENTER); - fd.set_size(size*Pango::SCALE); + fd.set_size(int(size*Pango::SCALE)); l->set_font_description(fd); l->get_pixel_size(width,height); while( width >= image_w-6 ){ @@ -248,7 +248,7 @@ About::About(): fd = Pango::FontDescription("Sans, 11"); l->set_font_description(fd); l->set_justify(Pango::ALIGN_CENTER); - fd.set_size(size*Pango::SCALE); + fd.set_size(int(size*Pango::SCALE)); l->set_font_description(fd); l->get_pixel_size(width,height); while( width >= image_w-6 ){