From: dooglus Date: Thu, 11 Dec 2008 21:03:10 +0000 (+0000) Subject: Fix a typo: angle::deg::get() returns a float not a string. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=8328c924d4f5f70a6323bc6e7f903daffaac5a5a;p=synfig.git Fix a typo: angle::deg::get() returns a float not a string. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2310 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/value.cpp b/synfig-core/trunk/src/synfig/value.cpp index 0a85c9b..04ebe68 100644 --- a/synfig-core/trunk/src/synfig/value.cpp +++ b/synfig-core/trunk/src/synfig/value.cpp @@ -105,7 +105,7 @@ ValueBase::get_string() const case TYPE_NIL: return "Nil"; case TYPE_BOOL: return strprintf("Bool (%s)", get(bool()) ? "true" : "false"); case TYPE_INTEGER: return strprintf("Integer (%s)", get(int())); - case TYPE_ANGLE: return strprintf("Angle (%s)", Angle::deg(get(Angle())).get()); + case TYPE_ANGLE: return strprintf("Angle (%.2f)", Angle::deg(get(Angle())).get()); // All types after this point are larger than 32 bits