summaryrefslogtreecommitdiff
path: root/winrt
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2013-05-06 22:05:31 -0700
committerRobin Watts <robin.watts@artifex.com>2013-05-16 19:25:49 +0100
commite26c2d8a535f163348c4e50ccffd4125082df393 (patch)
tree2a56bb32402e678fbd7581717c237090560c162b /winrt
parent857d800824ae5cf5335c758f77ec928fdda52c63 (diff)
downloadmupdf-e26c2d8a535f163348c4e50ccffd4125082df393.tar.xz
Fix so that we can open a new document after already opening one
Diffstat (limited to 'winrt')
-rw-r--r--winrt/mupdf_cpp/MainPage.xaml.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/winrt/mupdf_cpp/MainPage.xaml.cpp b/winrt/mupdf_cpp/MainPage.xaml.cpp
index a8b1d930..5cb2298f 100644
--- a/winrt/mupdf_cpp/MainPage.xaml.cpp
+++ b/winrt/mupdf_cpp/MainPage.xaml.cpp
@@ -378,11 +378,8 @@ void mupdf_cpp::MainPage::SetFlipView()
void mupdf_cpp::MainPage::CleanUp()
{
/* Remove current pages in the flipviews */
- if (xaml_vert_flipView->Items->Size)
- xaml_vert_flipView->Items->Clear();
-
- if (xaml_horiz_flipView->Items->Size)
- xaml_horiz_flipView->Items->Clear();
+ if (m_docPages != nullptr && m_docPages->Size > 0)
+ m_docPages->Clear();
this->m_curr_flipView = nullptr;
m_currpage = -1;