diff --git a/src/gui/UBDocumentNavigator.cpp b/src/gui/UBDocumentNavigator.cpp index 1c349038..c947d902 100644 --- a/src/gui/UBDocumentNavigator.cpp +++ b/src/gui/UBDocumentNavigator.cpp @@ -264,14 +264,6 @@ void UBDocumentNavigator::resizeEvent(QResizeEvent *event) // Update the thumbnails width mThumbnailWidth = (width() > mThumbnailMinWidth) ? width() - 2*border() : mThumbnailMinWidth; - // Update the scene rect - // QRect sceneRect; - // sceneRect.setWidth(width() - 2*border()); - // sceneRect.setHeight(height() - 2*border()); - // sceneRect.moveLeft(border()); - // sceneRect.moveTop(border()); - // scene()->setSceneRect(sceneRect); - // Refresh the scene refreshScene(); } diff --git a/src/gui/UBThumbnailWidget.cpp b/src/gui/UBThumbnailWidget.cpp index 4f22cc42..fbe03045 100644 --- a/src/gui/UBThumbnailWidget.cpp +++ b/src/gui/UBThumbnailWidget.cpp @@ -887,11 +887,6 @@ void UBImgTextThumbnailElement::Place(int row, int col, qreal width, qreal heigh qreal scaleFactor = qMin(scaleWidth, scaleHeight); UBThumbnail* pix = dynamic_cast(this->thumbnail); - if(pix) - { - scaleFactor = qMin(scaleFactor, 1.0); - } - QTransform transform; transform.scale(scaleFactor, scaleFactor);