1. mst
  2. ooo340

Commits

Frank Schoenheit [fs]  committed 6cd3de8

fs33a: #i113988# properly retrieve standard images

  • Participants
  • Parent commits dd72b06
  • Branches default

Comments (0)

Files changed (1)

File svtools/source/graphic/provider.cxx

View file
  • Ignore whitespace
     if( ( 0 == rResourceURL.getToken( 0, '/', nIndex ).compareToAscii( "private:standardimage" ) ) )
     {
 		rtl::OUString sImageName( rResourceURL.copy( nIndex ) );
-        if ( sImageName.compareToAscii( "info" ) )
+        if ( sImageName.equalsAscii( "info" ) )
 		{
 			xRet = InfoBox::GetStandardImage().GetXGraphic();
 		}
-		else if ( sImageName.compareToAscii( "warning" ) )
+		else if ( sImageName.equalsAscii( "warning" ) )
 		{
 			xRet = WarningBox::GetStandardImage().GetXGraphic();
 		}
-		else if ( sImageName.compareToAscii( "error" ) )
+		else if ( sImageName.equalsAscii( "error" ) )
 		{
 			xRet = ErrorBox::GetStandardImage().GetXGraphic();
 		}
-		else if ( sImageName.compareToAscii( "query" ) )
+		else if ( sImageName.equalsAscii( "query" ) )
 		{
 			xRet = QueryBox::GetStandardImage().GetXGraphic();
 		}