View | Details | Raw Unified | Return to issue 119536
Collapse All | Expand All

(-)sd/source/filter/eppt/epptso.cxx (+14 lines)
Lines 4784-4791 Link Here
4784
                    else
4784
                    else
4785
                    {
4785
                    {
4786
                        ImplCreateShape( ESCHER_ShpInst_PictureFrame, 0xa00, aSolverContainer );
4786
                        ImplCreateShape( ESCHER_ShpInst_PictureFrame, 0xa00, aSolverContainer );
4787
                        const Rectangle aOldRect100thmm(aRect100thmm);
4788
4787
                        if ( aPropOpt.CreateGraphicProperties( mXPropSet, String( RTL_CONSTASCII_USTRINGPARAM( "GraphicURL" ) ), sal_False, sal_True ) )
4789
                        if ( aPropOpt.CreateGraphicProperties( mXPropSet, String( RTL_CONSTASCII_USTRINGPARAM( "GraphicURL" ) ), sal_False, sal_True ) )
4790
                        {
4788
                            aPropOpt.AddOpt( ESCHER_Prop_LockAgainstGrouping, 0x800080 );
4791
                            aPropOpt.AddOpt( ESCHER_Prop_LockAgainstGrouping, 0x800080 );
4792
							
4793
                            if(aOldRect100thmm != aRect100thmm)
4794
                            {
4795
                                // #119536# graphic has been adapted (rotated) so that it can be saved without angle,
4796
                                // adapt local values as needed
4797
                                maPosition = ImplMapPoint( ::com::sun::star::awt::Point( aRect100thmm.Left(), aRect100thmm.Top() ) );
4798
					            maSize = ImplMapSize( ::com::sun::star::awt::Size ( aRect100thmm.GetWidth(), aRect100thmm.GetHeight() ) );
4799
							    maRect = Rectangle( Point( maPosition.X, maPosition.Y ), Size( maSize.Width, maSize.Height ) );
4800
							    mnAngle = 0;
4801
                            }
4802
                        }
4789
                    }
4803
                    }
4790
                }
4804
                }
4791
            }
4805
            }

Return to issue 119536