Source/Gorgon/Widgets/Common.h

branch
4.x-dev
changeset 1461
6bbecfcb304e
parent 1460
d0d48718575e
--- a/Source/Gorgon/Widgets/Common.h	Wed Oct 07 16:46:11 2020 +0300
+++ b/Source/Gorgon/Widgets/Common.h	Wed Oct 07 20:33:51 2020 +0300
@@ -14,7 +14,7 @@
     
     template<class T_>
     T_ FloatToValue(float value, T_ min, T_ max) {
-        return (max - min) * value + min;
+        return T_((max - min) * value + min);
     }
     
     ///@endcond

mercurial