Non-.shape suffix in shape export

2007-12-11 Thread Lars Clausen

On Mon, 2007-12-10 at 16:59 -0800, Plamen Todorov wrote:
> Hello,
> 
> Dia crashes if it is attempted to export shape to a
> file, which extension is not .shape (the UI allows to
> type whatever file extension the user likes or no
> extension at all). The problem seems to come from
> plug-ins/shape/shape-export.c, where after the lines:
> point = strrchr(filename, '.'); it is not checked if
> point == NULL (no file extension). Also the line:
> strlen(g_basename(filename))-6);
> makes assumption of the extension length, which may
> not be correct. Attached is suggestion for fix.

Thank you, your patch seems to work.  While Dia should obviously not
crash, Dia will only load shape files that end in .shape, so it's
slightly problematic to allow non-.shape shape files.  Unfortunately,
there is no way for the export interface to indicate error in the
filename[1].  I think the better way to fix this problem would be to
give a warning message in export_shape and return early if the suffix is
not .shape.

-Lars

[1] The export interface is fairly rudimentary overall, it can't specify
any arguments like size either (except very clumsily like the PNG export
does).  An improved export system would be nice, but is not at the top
of my personal worklist.

___
Dia-list mailing list
Dia-list@gnome.org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia



BPMN

2007-12-11 Thread Mike . . .
Hi


I'm using DIA for Linux and I'm looking for a complement(plugin) for BPMN
but only the Windows version bring BPMN complement

so, How can I get BPMN complement for Linux

-- 
Miguel Enrique Guerra Connor
Der Gerechte wird aus dem Glauben leben
GNU/LINUX user 433347
___
Dia-list mailing list
Dia-list@gnome.org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia



Re: 19" Rack shapes for Dia

2007-12-11 Thread Jarda Benkovsky
> Jarda Benkovsky wrote:
>> Hi all,
>>
>> I have created a couple new shapes for Dia. They are meant for drawing
>> equipment in 19" racks.

> Thanks very much. I just installed under WinXP/Dia 0.96.1 and they seem
> to work well. I wonder if it's possible to position a text tag to the
> left or right and vertically in the middle of each 1U spot on the rack
> shapes? I am always adding enumerable text comments beside my badly
> drawn (until now) racks.

Hi, thank you for trying them out!

I have made a shape which is a scale of ticks spaced by 1U with anchors
between them - you can attach text labels to them. Would it fulfill your
needs?

Edheldil
<>___
Dia-list mailing list
Dia-list@gnome.org
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia