diff options
Diffstat (limited to 'include/canvas/canvastools.hxx')
-rw-r--r-- | include/canvas/canvastools.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/canvas/canvastools.hxx b/include/canvas/canvastools.hxx index 4e9c6064d92f..de5a76cfe217 100644 --- a/include/canvas/canvastools.hxx +++ b/include/canvas/canvastools.hxx @@ -381,7 +381,7 @@ namespace canvas /// Convert standard 8888 RGBA color to vcl color CANVASTOOLS_DLLPUBLIC ::com::sun::star::uno::Sequence<sal_Int8> colorToStdIntSequence( const ::Color& rColor ); - // Modeled closely after boost::numeric_cast, only that we + // Modelled closely after boost::numeric_cast, only that we // issue some trace output here and throw a RuntimeException /** Cast numeric value into another (numeric) data type @@ -400,7 +400,7 @@ namespace canvas #undef min #undef max - if( ( arg<0 && !TargetLimits::is_signed) || // loosing the sign here + if( ( arg<0 && !TargetLimits::is_signed) || // losing the sign here ( SourceLimits::is_signed && arg<TargetLimits::min()) || // underflow will happen ( arg>TargetLimits::max() ) ) // overflow will happen { |