Skip to content

Commit

Permalink
Divide with scale factor instead of multiplying.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Mar 23, 2016
1 parent ae8e741 commit 4388d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/Util/Utilities.cpp
Expand Up @@ -320,5 +320,5 @@ void Utilities::parseMetaModelText(MessageHandler *pMessageHandler, QString cont
*/
qreal Utilities::convertUnit(qreal value, qreal offset, qreal scaleFactor)
{
return (value - offset) * scaleFactor;
return (value - offset) / scaleFactor;
}

0 comments on commit 4388d1f

Please sign in to comment.