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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 242afe30..6972f32d 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -2246,7 +2246,10 @@ static iChar linkOrdinalChar_DocumentWidget_(const iDocumentWidget *d, size_t or
2246 2246
2247static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *ev) { 2247static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *ev) {
2248 iWidget *w = as_Widget(d); 2248 iWidget *w = as_Widget(d);
2249 if (ev->type == SDL_USEREVENT && ev->user.code == command_UserEventCode) { 2249 if (isMetricsChange_UserEvent(ev)) {
2250 updateSize_DocumentWidget(d);
2251 }
2252 else if (ev->type == SDL_USEREVENT && ev->user.code == command_UserEventCode) {
2250 if (!handleCommand_DocumentWidget_(d, command_UserEvent(ev))) { 2253 if (!handleCommand_DocumentWidget_(d, command_UserEvent(ev))) {
2251 /* Base class commands. */ 2254 /* Base class commands. */
2252 return processEvent_Widget(w, ev); 2255 return processEvent_Widget(w, ev);