Kaydet (Commit) b4ed680e authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

coverity#735599 : Division by zero

Change-Id: I1a69224793eb39d88894e1090672bdb641c88a02
üst a1a545aa
...@@ -886,7 +886,11 @@ sal_Int32 ModulWindow::FormatAndPrint( Printer* pPrinter, sal_Int32 nPrintPage ) ...@@ -886,7 +886,11 @@ sal_Int32 ModulWindow::FormatAndPrint( Printer* pPrinter, sal_Int32 nPrintPage )
OUString aTitle( CreateQualifiedName() ); OUString aTitle( CreateQualifiedName() );
sal_uInt16 nLineHeight = (sal_uInt16) pPrinter->GetTextHeight(); // etwas mehr. sal_uInt16 nLineHeight = (sal_uInt16) pPrinter->GetTextHeight();
if(nLineHeight == 0)
{
nLineHeight = 1;
}
sal_uInt16 nParaSpace = 10; sal_uInt16 nParaSpace = 10;
Size aPaperSz = pPrinter->GetOutputSize(); Size aPaperSz = pPrinter->GetOutputSize();
......
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