Kaydet (Commit) 790966d5 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

This has only converted the condition of ?: to long

...not the resulting value, since 9ad0aa90
"#80304# More improvements for vertial writing," but seems unnecessary anyway.

Change-Id: Ifb86e51970cd32a1933541c75fe5d1d8f8b9f05b
üst 20287a82
......@@ -518,9 +518,9 @@ void ImpEditEngine::CheckAutoPageSize()
{
Size aPrevPaperSize( GetPaperSize() );
if ( GetStatus().AutoPageWidth() )
aPaperSize.Width() = (long) !IsVertical() ? CalcTextWidth( sal_True ) : GetTextHeight();
aPaperSize.Width() = !IsVertical() ? CalcTextWidth( sal_True ) : GetTextHeight();
if ( GetStatus().AutoPageHeight() )
aPaperSize.Height() = (long) !IsVertical() ? GetTextHeight() : CalcTextWidth( sal_True );
aPaperSize.Height() = !IsVertical() ? GetTextHeight() : CalcTextWidth( sal_True );
SetValidPaperSize( aPaperSize ); // consider Min, Max
......
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