aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/ephoto_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/ephoto_config.c')
-rw-r--r--src/bin/ephoto_config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/ephoto_config.c b/src/bin/ephoto_config.c
index 53797d1..31f711c 100644
--- a/src/bin/ephoto_config.c
+++ b/src/bin/ephoto_config.c
@@ -650,6 +650,9 @@ _ephoto_on_config_save(void *data)
snprintf(buf, sizeof(buf), "%s/ephoto/ephoto.cfg", efreet_config_home_get());
snprintf(buf2, sizeof(buf2), "%s.tmp", buf);
+ if (ephoto->config->window_width < 15) ephoto->config->window_width = 15;
+ if (ephoto->config->window_height < 15) ephoto->config->window_height = 15;
+
ef = eet_open(buf2, EET_FILE_MODE_WRITE);
if (!ef)
goto save_end;