Various fixes

This commit is contained in:
Ilya Laktyushin
2023-08-12 19:49:16 +02:00
parent d4408c2bb0
commit 40c2c1b620
14 changed files with 50 additions and 22 deletions

View File

@@ -161,8 +161,11 @@ public final class DrawingLocationEntity: DrawingEntity, Codable {
}
}
public func duplicate() -> DrawingEntity {
public func duplicate(copy: Bool) -> DrawingEntity {
let newEntity = DrawingLocationEntity(title: self.title, style: self.style, location: self.location, icon: self.icon, queryId: self.queryId, resultId: self.resultId)
if copy {
newEntity.uuid = self.uuid
}
newEntity.referenceDrawingSize = self.referenceDrawingSize
newEntity.position = self.position
newEntity.width = self.width