diff options
Diffstat (limited to 'src-qt5/desktop-utils/lumina-pdf/Renderer-mupdf.cpp')
-rw-r--r-- | src-qt5/desktop-utils/lumina-pdf/Renderer-mupdf.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src-qt5/desktop-utils/lumina-pdf/Renderer-mupdf.cpp b/src-qt5/desktop-utils/lumina-pdf/Renderer-mupdf.cpp index 002650f2..5acf71c7 100644 --- a/src-qt5/desktop-utils/lumina-pdf/Renderer-mupdf.cpp +++ b/src-qt5/desktop-utils/lumina-pdf/Renderer-mupdf.cpp @@ -657,9 +657,10 @@ QSize Renderer::imageSize(int pagenum){ int Renderer::hashSize() { return dataHash.size(); } -void Renderer::clearHash() { +void Renderer::clearHash(int pagenum) { //qDeleteAll(dataHash); - dataHash.clear(); + if(pagenum<0){ dataHash.clear(); } + else if(dataHash.contains(pagenum)){ dataHash.remove(pagenum); } } TextData *Renderer::linkList(int pagenum, int entry) { |