Skip to content

Commit

Permalink
Fix behaviour for reverse-manipulations of Integer converter
Browse files Browse the repository at this point in the history
  • Loading branch information
morevnaproject committed Sep 10, 2015
1 parent 2891f7a commit 03f21d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synfig-core/src/synfig/valuenodes/valuenode_integer.cpp
Expand Up @@ -146,13 +146,13 @@ ValueNode_Integer::operator()(Time t)const
ValueBase
synfig::ValueNode_Integer::get_inverse(Time /*t*/, const synfig::Real &target_value) const
{
return (int)target_value;
return (int)round(target_value);
}

synfig::ValueBase
synfig::ValueNode_Integer::get_inverse(Time /*t*/, const synfig::Angle &target_value) const
{
return (int)Angle::deg(target_value).get();
return (int)round(Angle::deg(target_value).get());
}


Expand Down

0 comments on commit 03f21d2

Please sign in to comment.