summaryrefslogtreecommitdiff
path: root/winrt/mupdf_cpp
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2013-06-08 13:11:38 -0700
committerMichael Vrhel <michael.vrhel@artifex.com>2013-06-08 15:06:14 -0700
commit1a5997c33fa826a47e5ea7c69cf814d877bb988e (patch)
tree90f197f1829c66260bd43d702f7b1eb28659225e /winrt/mupdf_cpp
parentf28579cf2b9c4f8110fc14e42c4896b6145d85ea (diff)
downloadmupdf-1a5997c33fa826a47e5ea7c69cf814d877bb988e.tar.xz
Fix for crash if no file present and links button pressed.
Diffstat (limited to 'winrt/mupdf_cpp')
-rw-r--r--winrt/mupdf_cpp/MainPage.xaml.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/winrt/mupdf_cpp/MainPage.xaml.cpp b/winrt/mupdf_cpp/MainPage.xaml.cpp
index f6d74dda..a8dc1b3a 100644
--- a/winrt/mupdf_cpp/MainPage.xaml.cpp
+++ b/winrt/mupdf_cpp/MainPage.xaml.cpp
@@ -1075,6 +1075,8 @@ void mupdf_cpp::MainPage::Linker(Platform::Object^ sender, Windows::UI::Xaml::Ro
{
m_links_on = !m_links_on;
+ if (!m_init_done)
+ return;
if (m_links_on)
AddLinkCanvas();
else