summaryrefslogtreecommitdiff
path: root/src/xsane-front-gtk.c
diff options
context:
space:
mode:
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);
+ }
}
/* ---------------------------------------------------------------------------------------------------------------------- */