summaryrefslogtreecommitdiff
path: root/src/xsane-front-gtk.c
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2014-10-03 16:20:28 +0200
committerMattia Rizzolo <mattia@mapreri.org>2014-10-03 16:20:28 +0200
commit23337be110e44acd2f922fed0c92c5130abc1bba (patch)
tree577707fbcd4ffa280c3e1644e4ce48f06de7defd /src/xsane-front-gtk.c
parentca9f280d0ac4173cdd29f745fd574a3b597969e7 (diff)
Imported Upstream version 0.999
Diffstat (limited to 'src/xsane-front-gtk.c')
-rw-r--r--src/xsane-front-gtk.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/xsane-front-gtk.c b/src/xsane-front-gtk.c
index 35aa89d..4c973fb 100644
--- a/src/xsane-front-gtk.c
+++ b/src/xsane-front-gtk.c
@@ -1709,7 +1709,7 @@ void xsane_update_param(void *arg)
gtk_label_set(GTK_LABEL(xsane.info_label), buf);
- if (xsane.preview->surface_unit == SANE_UNIT_MM)
+ if (xsane.preview && xsane.preview->surface_unit == SANE_UNIT_MM)
{
double dx, dy;
@@ -1724,7 +1724,10 @@ void xsane_update_param(void *arg)
xsane_update_histogram(TRUE /* update raw */);
- preview_display_valid(xsane.preview);
+ if (xsane.preview)
+ {
+ preview_display_valid(xsane.preview);
+ }
}
/* ---------------------------------------------------------------------------------------------------------------------- */