summaryrefslogtreecommitdiff
path: root/vcl/source/outdev/map.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-12-14 09:49:39 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-12-15 06:45:14 +0000
commitd15b4e204598fc7e4c1682c4f10228e217575937 (patch)
tree1173b2725abac5f06bfd2e28965a95256283e6a4 /vcl/source/outdev/map.cxx
parent14a0d26d6ae0ee59a685c254ec235fea81636475 (diff)
teach sallogareas plugin to catch inconsistencies
Change-Id: I8bcea5ffc74d48148bea78da8c17744e288c069a Reviewed-on: https://gerrit.libreoffice.org/32004 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/outdev/map.cxx')
-rw-r--r--vcl/source/outdev/map.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/outdev/map.cxx b/vcl/source/outdev/map.cxx
index 55cf14f8bb64..c89aeb600055 100644
--- a/vcl/source/outdev/map.cxx
+++ b/vcl/source/outdev/map.cxx
@@ -46,7 +46,7 @@ static Fraction ImplMakeFraction( long nN1, long nN2, long nD1, long nD2 )
{
if( nD1 == 0 || nD2 == 0 ) //under these bad circumstances the following while loop will be endless
{
- SAL_WARN("vcl", "Invalid parameter for ImplMakeFraction");
+ SAL_WARN("vcl.gdi", "Invalid parameter for ImplMakeFraction");
return Fraction( 1, 1 );
}
@@ -703,7 +703,7 @@ void OutputDevice::SetMapMode( const MapMode& rNewMapMode )
mpMetaFile->AddAction( new MetaMapModeAction( rNewMapMode ) );
#ifdef DBG_UTIL
if ( GetOutDevType() != OUTDEV_PRINTER )
- SAL_WARN_IF( !bRelMap, "vcl", "Please record only relative MapModes!" );
+ SAL_WARN_IF( !bRelMap, "vcl.gdi", "Please record only relative MapModes!" );
#endif
}
@@ -1511,17 +1511,17 @@ static void verifyUnitSourceDest( MapUnit eUnitSource, MapUnit eUnitDest )
&& eUnitDest != MapUnit::MapAppFont
&& eUnitDest != MapUnit::MapRelative,
"Destination MapUnit is not permitted" );
- SAL_WARN_IF( eUnitSource == MapUnit::MapPixel, "vcl",
+ SAL_WARN_IF( eUnitSource == MapUnit::MapPixel, "vcl.gdi",
"MapUnit::MapPixel approximated with 72dpi" );
- SAL_WARN_IF( eUnitDest == MapUnit::MapPixel, "vcl",
+ SAL_WARN_IF( eUnitDest == MapUnit::MapPixel, "vcl.gdi",
"MapUnit::MapPixel approximated with 72dpi" );
}
#define ENTER3( eUnitSource, eUnitDest ) \
long nNumerator = 1; \
long nDenominator = 1; \
- SAL_WARN_IF( eUnitSource > s_MaxValidUnit, "vcl", "Invalid source map unit"); \
- SAL_WARN_IF( eUnitDest > s_MaxValidUnit, "vcl", "Invalid destination map unit"); \
+ SAL_WARN_IF( eUnitSource > s_MaxValidUnit, "vcl.gdi", "Invalid source map unit"); \
+ SAL_WARN_IF( eUnitDest > s_MaxValidUnit, "vcl.gdi", "Invalid destination map unit"); \
if( (eUnitSource <= s_MaxValidUnit) && (eUnitDest <= s_MaxValidUnit) ) \
{ \
nNumerator = aImplNumeratorAry[eUnitSource] * \