summaryrefslogtreecommitdiff
path: root/src/ui/documentwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r--src/ui/documentwidget.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 5bded6c6..38f34c77 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -1298,9 +1298,9 @@ static void postProcessRequestContent_DocumentWidget_(iDocumentWidget *d, iBool
1298 2); 1298 2);
1299 } 1299 }
1300 if (preloadCoverImage_Gempub(d->sourceGempub, d->doc)) { 1300 if (preloadCoverImage_Gempub(d->sourceGempub, d->doc)) {
1301 redoLayout_GmDocument(d->doc); 1301 redoLayout_GmDocument(d->doc);
1302 updateVisible_DocumentWidget_(d); 1302 updateVisible_DocumentWidget_(d);
1303 invalidate_DocumentWidget_(d); 1303 invalidate_DocumentWidget_(d);
1304 } 1304 }
1305 } 1305 }
1306 else if (equal_String(d->mod.url, indexPageUrl_Gempub(d->sourceGempub))) { 1306 else if (equal_String(d->mod.url, indexPageUrl_Gempub(d->sourceGempub))) {
@@ -2461,7 +2461,10 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd)
2461 invalidate_DocumentWidget_(d); 2461 invalidate_DocumentWidget_(d);
2462 refresh_Widget(w); 2462 refresh_Widget(w);
2463 } 2463 }
2464 else if (equal_Command(cmd, "document.layout.changed") && document_App() == d) { 2464 else if (equal_Command(cmd, "document.layout.changed") && document_Root(get_Root()) == d) {
2465 if (argLabel_Command(cmd, "redo")) {
2466 redoLayout_GmDocument(d->doc);
2467 }
2465 updateSize_DocumentWidget(d); 2468 updateSize_DocumentWidget(d);
2466 } 2469 }
2467 else if (equal_Command(cmd, "pinsplit.set")) { 2470 else if (equal_Command(cmd, "pinsplit.set")) {