diff options
| author | Jabiertxof <jabier.arraiza@marker.es> | 2019-02-19 13:08:49 +0000 |
|---|---|---|
| committer | Jabiertxof <jabier.arraiza@marker.es> | 2019-02-19 13:08:49 +0000 |
| commit | 1f44f38dcf77bd9312d1818fccc333b0e31773a0 (patch) | |
| tree | 0b5aec5bc148cbe0ff20f1e4c86a0e7af7796489 /src | |
| parent | Fix code to avoid error message "descr without font family". (diff) | |
| download | inkscape-1f44f38dcf77bd9312d1818fccc333b0e31773a0.tar.gz inkscape-1f44f38dcf77bd9312d1818fccc333b0e31773a0.zip | |
Fixes LPE Dialog search focus and window sice improvements pointed by Patrick
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() |
