[Uml-devel] Diagram exporting with wrong bounding rectangle

Andi Fischer andi.fischer at hispeed.ch
Tue Jul 5 18:06:48 UTC 2011


Am 03.07.2011 21:05, schrieb Kip Warner:
> On Sun, 2011-07-03 at 11:30 +0200, Andi Fischer wrote:
>> Hey Kip,
>>
>> What exactly are you doing? Do you export your diagram as a picture? In
>> what format - svg, png?
>>
>> I did a test with exporting to png and the picture has just the size of
>> the diagram elements.
>> When I export to svg, then there is a larger margin at the bottom and on
>> the right.
>>
>> Therefore I suspect the code that generates the svg picture.
>>
>> Regards,
>>
>> Andi
> Hey Andi,
>
> I think you are right. I just tested with png and they came out
> perfectly fitted. So yes, the code must be somewhere where the svg
> pictures are generated. Maybe somewhere where the bounding rectangle is
> calculated? Or perhaps the bounding rectangle is calculated properly
> initially, but then scaled uniformly to be a little bigger.

Hey Kip,
I have just committed some changes to umlviewimageexportermodel.cpp.
Hope this fixes the problem. Please have a try.

Regards,

Andi




More information about the umbrello-devel mailing list