Skip to content

Commit

Permalink
fixes zoom-to-fit for svgs
Browse files Browse the repository at this point in the history
  • Loading branch information
diemmarkus committed Jul 17, 2020
1 parent 1194706 commit 08cfba8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ImageLounge/src/DkGui/DkViewPort.cpp
Expand Up @@ -493,6 +493,8 @@ void DkViewPort::zoomToFit() {
zoomTo(zoomLevel);
else if (zoomLevel < 1)
resetView();
else if (zoomLevel == 1 && mLoader && mLoader->hasSvg())
resetView();
}

void DkViewPort::resetView() {
Expand Down

0 comments on commit 08cfba8

Please sign in to comment.