From 4d9c36cfe000caeaf3dcc79f4ed004e0595975e4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 26 Apr 2016 15:56:24 +0200 Subject: Fix 696543: Don't launch search with empty string. --- platform/x11/pdfapp.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'platform') diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c index 75b0ce0d..17696a04 100644 --- a/platform/x11/pdfapp.c +++ b/platform/x11/pdfapp.c @@ -1011,6 +1011,13 @@ static void pdfapp_search_in_direction(pdfapp_t *app, enum panning *panto, int d { int firstpage, page; + /* abort if no search string */ + if (app->search[0] == 0) + { + winrepaint(app); + return; + } + wincursor(app, WAIT); firstpage = app->pageno; -- cgit v1.2.3