summaryrefslogtreecommitdiff
path: root/apps/win_main.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-08-17 22:13:53 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-08-30 00:05:30 +0200
commita7a8ca26350e0a3b0e5dc756b4c40e3f5b0f872c (patch)
treeb39cb373030c0b4ecb92b9f5b32429f4202ce04d /apps/win_main.c
parent254e307c685141d538bb75b581d005470f33a864 (diff)
downloadmupdf-a7a8ca26350e0a3b0e5dc756b4c40e3f5b0f872c.tar.xz
Do not change view when reloading file.
Diffstat (limited to 'apps/win_main.c')
-rw-r--r--apps/win_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/win_main.c b/apps/win_main.c
index d98a6742..fc772aa7 100644
--- a/apps/win_main.c
+++ b/apps/win_main.c
@@ -607,7 +607,7 @@ void winreloadfile(pdfapp_t *app)
if (fd < 0)
winerror(&gapp, fz_throw("cannot reload file '%s'", filename));
- pdfapp_open(app, filename, fd);
+ pdfapp_open(app, filename, fd, 1);
}
void winopenuri(pdfapp_t *app, char *buf)
@@ -869,7 +869,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShow
if (code == 0)
win32error("cannot convert filename to utf-8");
- pdfapp_open(&gapp, filename, fd);
+ pdfapp_open(&gapp, filename, fd, 0);
while (GetMessage(&msg, NULL, 0, 0))
{