summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libview/ev-document-model.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libview/ev-document-model.c b/libview/ev-document-model.c
index 856ee36e..572f5526 100644
--- a/libview/ev-document-model.c
+++ b/libview/ev-document-model.c
@@ -559,6 +559,11 @@ ev_document_model_set_dual_page (EvDocumentModel *model,
model->dual_page = dual_page;
g_object_notify (G_OBJECT (model), "dual-page");
+
+ if (dual_page && model->dual_page_odd_left) {
+ model->dual_page_odd_left = FALSE;
+ g_object_notify (G_OBJECT (model), "dual-odd-left");
+ }
}
gboolean
@@ -583,6 +588,11 @@ ev_document_model_set_dual_page_odd_pages_left (EvDocumentModel *model,
model->dual_page_odd_left = odd_left;
g_object_notify (G_OBJECT (model), "dual-odd-left");
+
+ if (odd_left && model->dual_page) {
+ model->dual_page = FALSE;
+ g_object_notify (G_OBJECT (model), "dual-page");
+ }
}
gboolean