tags 532913 + patch
thanks

Hi!

On Fri, Jun 12, 2009 at 01:14:18PM -0400, Anthony DeRobertis wrote:
> When I run 'inkscape drawing.svg' to edit drawing.svg, inkscape takes
> forever to start (like normal; takes ages scanning fonts I believe),
> very briefly pops up its window, then crashes with a BadWindow error.

After encountering the same problem and digging a little more, I came up
with the following one-liner:

--- inkscape-0.46.orig/src/widgets/desktop-widget.cpp
+++ inkscape-0.46/src/widgets/desktop-widget.cpp
@@ -1058,7 +1058,6 @@
     if (window)
     {
         window->set_default_size (w, h);
-        window->reshow_with_initial_size ();
     }
 }


The GTK+ configuraton says about gtk_window_reshow_with_initial_size():

  Hides window, then reshows it, resetting the default size and position
  of the window. Used by GUI builders only.

I think the call can be safely removed as the function is here called
programmatically and, from what I have seen,
gtk_window_set_default_size() is always called before gtk_widget_show(),
thus rendered with the desired size.

After building with this patch, inkscape was not crashing anymore,
neither on startup or by loading another document afterwards.

Cheers,
-- 
Jérémy Bobbio                        .''`. 
lu...@debian.org                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   

Attachment: signature.asc
Description: Digital signature

Reply via email to