From 714ae84845ae3f8497dda13d4d88b95fbd5dda6d Mon Sep 17 00:00:00 2001
From: Mikhail Svechnikov <m.svechnikov@fz-juelich.de>
Date: Thu, 14 Dec 2023 14:03:16 +0100
Subject: [PATCH] rebase

---
 GUI/Model/Mask/MaskUnitsConverter.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/GUI/Model/Mask/MaskUnitsConverter.cpp b/GUI/Model/Mask/MaskUnitsConverter.cpp
index 6848ac7e5f2..7a5336c0579 100644
--- a/GUI/Model/Mask/MaskUnitsConverter.cpp
+++ b/GUI/Model/Mask/MaskUnitsConverter.cpp
@@ -54,9 +54,9 @@ void MaskUnitsConverter::convertMask(MaskItem* maskItem)
             pointItem->setPosY(convert(pointItem->posY(), Axis::Y));
         }
     } else if (auto* vlineItem = dynamic_cast<VerticalLineItem*>(maskItem)) {
-        vlineItem->setPosX(convert(vlineItem->posX(), Axis::X));
+        vlineItem->setPos(convert(vlineItem->pos(), Axis::X));
     } else if (auto* hlineItem = dynamic_cast<HorizontalLineItem*>(maskItem)) {
-        hlineItem->setPosY(convert(hlineItem->posY(), Axis::Y));
+        hlineItem->setPos(convert(hlineItem->pos(), Axis::Y));
     } else if (auto* ellItem = dynamic_cast<EllipseItem*>(maskItem)) {
         double xc = ellItem->xCenter();
         double yc = ellItem->yCenter();
-- 
GitLab