Skip to content

Commit

Permalink
Revert "tdf#141652 partial revert "Reset ShapeProperty priority..."
Browse files Browse the repository at this point in the history
This reverts 7.4 commit 18cc124.

Someone backported it to 7.3 as well.

Change-Id: Ie04595e11dd9d2e15fa940b8ada71714bd434f6a
  • Loading branch information
jstnlth committed Jul 28, 2022
1 parent 681ad9a commit 84b719e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
5 changes: 4 additions & 1 deletion oox/source/drawingml/fillproperties.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,10 @@ void FillProperties::pushToPropMap( ShapePropertyMap& rPropMap,
if(bIsCustomShape && bHasCropValues && bNeedCrop)
{
xGraphic = lclCropGraphic(xGraphic, CropQuotientsFromFillRect(aFillRect));
rPropMap.setProperty(ShapeProperty::FillBitmap, xGraphic);
if (rPropMap.supportsProperty(ShapeProperty::FillBitmapName))
rPropMap.setProperty(ShapeProperty::FillBitmapName, xGraphic);
else
rPropMap.setProperty(ShapeProperty::FillBitmap, xGraphic);
}
}
}
Expand Down
Binary file not shown.
10 changes: 0 additions & 10 deletions sw/qa/extras/ooxmlexport/ooxmlexport6.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -274,16 +274,6 @@ DECLARE_OOXMLEXPORT_TEST(testDMLShapeFillBitmapCrop, "dml-shape-fillbitmapcrop.d

}

DECLARE_OOXMLEXPORT_TEST(test141652_fillBitmapName, "tdf141652_fillBitmapName.docx")
{
text::GraphicCrop aGraphicCropStruct = getProperty<text::GraphicCrop>(getShape(1), "GraphicCrop");
CPPUNIT_ASSERT_DOUBLES_EQUAL( sal_Int32(-769), aGraphicCropStruct.Right, 10);

CPPUNIT_ASSERT_EQUAL( sal_Int32( 0 ), aGraphicCropStruct.Left );
CPPUNIT_ASSERT_EQUAL( sal_Int32( 0 ), aGraphicCropStruct.Top );
CPPUNIT_ASSERT_EQUAL( sal_Int32( 0 ), aGraphicCropStruct.Bottom );
}

DECLARE_OOXMLEXPORT_TEST(testDMLShapeFillPattern, "dml-shape-fillpattern.docx")
{
// Hatching was ignored by the export.
Expand Down

0 comments on commit 84b719e

Please sign in to comment.