[umbrello-devel] [umbrello] [Bug 316095] unable to export class diagram to image
Ralf Habacker
ralf.habacker at freenet.de
Tue Sep 24 07:02:20 UTC 2013
https://bugs.kde.org/show_bug.cgi?id=316095
--- Comment #10 from Ralf Habacker <ralf.habacker at freenet.de> ---
(In reply to comment #9)
> (In reply to comment #8)
> > At least we're getting somewhere :)
> >
> > The culprit is one filter can now contain multiple file extensions ("*.jpeg
> > *.jpg *.jpe *.jfif" - the KMimeType pattern). So for the PNG files, all is
> > fine ("*.png" -> "png" == "png"), but JPEG fails ("*.jpeg *.jpg" -> "jpeg
> > jpg" != "jpg") hence checking for contains("jpg") will make everything work
> > as intended.
+
+ // imageType is a list of one or more possible file extensions
+ // for a selected file type, for example:
+ // Bitmap: "bmp dib"
+ // JPEG: "jpeg jpg"
+ // PNG: "png"
...
+ if (imgType.contains("jpeg")) return "image/jpeg";
there is still no "jpg" handling case
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the umbrello-devel
mailing list