Kaydet (Commit) 17354cb8 authored tarafından Caolán McNamara's avatar Caolán McNamara

improve Sttb dumping for truncated case

Change-Id: I52c7c6d75a843673d1cacbf9adc77ac574fa95f7
üst 316ac78e
...@@ -503,7 +503,10 @@ void Sttb::Print( FILE* fp ) ...@@ -503,7 +503,10 @@ void Sttb::Print( FILE* fp )
for (sal_uInt16 index = 0; index < cData; ++index) for (sal_uInt16 index = 0; index < cData; ++index)
{ {
if (index >= dataItems.size()) if (index >= dataItems.size())
{
fprintf(fp, " Sttb truncated at entry %d(0x%x)\n", static_cast< int >( index ), static_cast< unsigned int >( index )); fprintf(fp, " Sttb truncated at entry %d(0x%x)\n", static_cast< int >( index ), static_cast< unsigned int >( index ));
break;
}
fprintf(fp," string dataItem[ %d(0x%x) ] has name %s\n", static_cast< int >( index ), static_cast< unsigned int >( index ), OUStringToOString( dataItems[ index ].data, RTL_TEXTENCODING_UTF8 ).getStr() ); fprintf(fp," string dataItem[ %d(0x%x) ] has name %s\n", static_cast< int >( index ), static_cast< unsigned int >( index ), OUStringToOString( dataItems[ index ].data, RTL_TEXTENCODING_UTF8 ).getStr() );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment