summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/livepatheffect-add.cpp
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2019-02-19 13:08:49 +0000
committerJabiertxof <jabier.arraiza@marker.es>2019-02-19 13:08:49 +0000
commit1f44f38dcf77bd9312d1818fccc333b0e31773a0 (patch)
tree0b5aec5bc148cbe0ff20f1e4c86a0e7af7796489 /src/ui/dialog/livepatheffect-add.cpp
parentFix code to avoid error message "descr without font family". (diff)
downloadinkscape-1f44f38dcf77bd9312d1818fccc333b0e31773a0.tar.gz
inkscape-1f44f38dcf77bd9312d1818fccc333b0e31773a0.zip
Fixes LPE Dialog search focus and window sice improvements pointed by Patrick
Diffstat (limited to 'src/ui/dialog/livepatheffect-add.cpp')
-rw-r--r--src/ui/dialog/livepatheffect-add.cpp12
1 files changed, 5 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));
}