Kaydet (Commit) 924a28a7 authored tarafından Michael Stahl's avatar Michael Stahl

fdo#80009: xmloff: ignore excessive fo:clip values

These cause problems in drawinglayer, and nobody needs a 5km clip.

Change-Id: Ic485250413194adbcd0ccf855f12e89e532d7120
üst f7453024
......@@ -81,6 +81,13 @@ bool XMLClipPropertyHandler::importXML( const OUString& rStrImpValue, uno::Any&
!rUnitConverter.convertMeasureToCore( nVal, aToken ) )
break;
// fdo#80009 such nonsense could be written via WW8 import fdo#77454
if (abs(nVal) > 400000)
{
SAL_INFO("xmloff.style", "ignoring excessive clip " << aToken);
nVal = 0;
}
switch( nPos )
{
case 0: aCrop.Top = nVal; break;
......
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