From 14f6d525ac3ae40c2a5466dcd383fdce5fd1c856 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 12 Oct 2023 16:10:47 +0300 Subject: [PATCH] Fix reading grainline type. --- src/app/puzzle/layout/layoutdef.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/puzzle/layout/layoutdef.cpp b/src/app/puzzle/layout/layoutdef.cpp index 2312e64ad..ae28b5ed8 100644 --- a/src/app/puzzle/layout/layoutdef.cpp +++ b/src/app/puzzle/layout/layoutdef.cpp @@ -72,10 +72,10 @@ auto StrToGrainlineType(const QString &string) -> GrainlineType case 0: // horizontal type = GrainlineType::Horizontal; break; - case 2: // vertical + case 1: // vertical type = GrainlineType::Vertical; break; - case 3: // notFixed + case 2: // notFixed default: type = GrainlineType::NotFixed; break;