From 7c144c76788c3bbae2e431dd0ee417bf7390ef19 Mon Sep 17 00:00:00 2001 From: Nav Date: Fri, 3 Sep 2021 21:51:14 +0100 Subject: [PATCH] Removed hard-coded rotation angle in SvgWidget --- src/Insight/UserInterfaces/InsightWindow/Widgets/SvgWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Insight/UserInterfaces/InsightWindow/Widgets/SvgWidget.cpp b/src/Insight/UserInterfaces/InsightWindow/Widgets/SvgWidget.cpp index f8ee9361..d0917f5e 100644 --- a/src/Insight/UserInterfaces/InsightWindow/Widgets/SvgWidget.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/Widgets/SvgWidget.cpp @@ -27,7 +27,7 @@ void SvgWidget::paintEvent(QPaintEvent* paintEvent) { std::ceil(static_cast(this->containerWidth / 2)), std::ceil(static_cast(this->containerHeight / 2)) ); - painter.rotate(90); + painter.rotate(this->angle); painter.translate( -std::ceil(static_cast(this->containerWidth / 2)), -std::ceil(static_cast(this->containerHeight / 2))