Commit cf2a93f4 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix crash when zoom <0.1

svn path=/trunk/kdegraphics/kpdf/; revision=251093
parent 9991b95a
......@@ -4,6 +4,7 @@
#include <qcursor.h>
#include <qpainter.h>
#include <qmutex.h>
#include <kdebug.h>
#include "PDFDoc.h"
......@@ -100,6 +101,8 @@ namespace KPDF
void PageWidget::zoomOut()
{
if ( (m_zoomFactor-0.1)<0.1 )
return;
m_zoomFactor -= 0.1;
updatePixmap();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment