From 2f1e1a0e539423612589c952fc2feefb3da1d422 Mon Sep 17 00:00:00 2001 From: wuyize Date: Sat, 28 Jan 2023 11:20:54 +0800 Subject: [PATCH] =?UTF-8?q?Fixed:=20=E8=AF=BB=E5=8F=96svg=E6=97=B6?= =?UTF-8?q?=E4=BC=A0=E5=85=A5=E7=BB=9D=E5=AF=B9=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ArchitectureColoredPainting/src/Editor/GraphicElement.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArchitectureColoredPainting/src/Editor/GraphicElement.cpp b/ArchitectureColoredPainting/src/Editor/GraphicElement.cpp index fd1078f..47f4ee1 100644 --- a/ArchitectureColoredPainting/src/Editor/GraphicElement.cpp +++ b/ArchitectureColoredPainting/src/Editor/GraphicElement.cpp @@ -17,8 +17,8 @@ void SimpleElement::loadSvgFile(const QString& filePath) SimpleElement::SimpleElement(QJsonObject jsonSource) : jsonSource(jsonSource) { painterPath.clear(); - loadSvgFile("D:\\Projects\\BigC\\svg\\3.svg"); - //loadSvgFile(jsonSource.value("data").toObject().value("include").toString()); + //loadSvgFile("D:\\Projects\\BigC\\svg\\3.svg"); + loadSvgFile("../"/*TODO: 改成json文件所在文件夹路径*/ + jsonSource.value("data").toObject().value("include").toString()); } GroupElement::GroupElement(FolderLayerWrapper *sourceLayer)