diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/dialog/livepatheffect-add.cpp | 12 | ||||
| -rw-r--r-- | src/ui/dialog/livepatheffect-add.h | 1 |
2 files changed, 6 insertions, 7 deletions
diff --git a/src/ui/dialog/livepatheffect-add.cpp b/src/ui/dialog/livepatheffect-add.cpp index 452c72eeb..ce9e7464d 100644 --- a/src/ui/dialog/livepatheffect-add.cpp +++ b/src/ui/dialog/livepatheffect-add.cpp @@ -83,6 +83,7 @@ LivePathEffectAdd::LivePathEffectAdd() : converter(Inkscape::LivePathEffect::LPETypeConverter) , _applied(false) , _showfavs(false) + , _started(true) { Glib::ustring gladefile = get_filename(Inkscape::IO::Resource::UIS, "dialog-livepatheffect-add.ui"); try { @@ -554,14 +555,11 @@ void LivePathEffectAdd::show(SPDesktop *desktop) } } } - int width; - int height; - int width_2; - int height_2; - dial._LPEDialogSelector->get_default_size(width_2, height_2); - dial._LPEDialogSelector->get_size(width, height); - if (width == width_2 && height == height_2) { + if (dial._started) { + dial._started = false; Gtk::Window *window = desktop->getToplevel(); + int width; + int height; window->get_size(width, height); dial._LPEDialogSelector->resize(std::min(width - 300, 1440), std::min(height - 300, 900)); } diff --git a/src/ui/dialog/livepatheffect-add.h b/src/ui/dialog/livepatheffect-add.h index d1767ca3e..69c1da421 100644 --- a/src/ui/dialog/livepatheffect-add.h +++ b/src/ui/dialog/livepatheffect-add.h @@ -107,6 +107,7 @@ private: const LivePathEffect::EnumEffectData<LivePathEffect::EffectType> *_to_add; bool _showfavs; bool _applied; + bool _started; class Effect; const LivePathEffect::EnumEffectDataConverter<LivePathEffect::EffectType> &converter; static LivePathEffectAdd &instance() |
