From 287bd98a3fe9539ed05a498ef2aa6aac175c4488 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 8 Apr 2017 17:17:38 +0000 Subject: [PATCH] Fix copying and pasting image requests. --- src/clipboard.cpp | 2 ++ src/sketch.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/clipboard.cpp b/src/clipboard.cpp index 81475c41..bbdf33e8 100644 --- a/src/clipboard.cpp +++ b/src/clipboard.cpp @@ -104,6 +104,7 @@ void GraphicsWindow::CopySelection() { cr.style = e->style; cr.str = e->str; cr.font = e->font; + cr.file = e->file; cr.construction = e->construction; {for(int i = 0; i < pts; i++) { Vector pt; @@ -168,6 +169,7 @@ void GraphicsWindow::PasteClipboard(Vector trans, double theta, double scale) { r->style = cr->style; r->str = cr->str; r->font = cr->font; + r->file = cr->file; r->construction = cr->construction; // Need to regen to get the right number of points, if extraPoints // changed. diff --git a/src/sketch.h b/src/sketch.h index 694af658..65cfd2ec 100644 --- a/src/sketch.h +++ b/src/sketch.h @@ -912,6 +912,7 @@ public: hStyle style; std::string str; std::string font; + Platform::Path file; bool construction; Vector point[MAX_POINTS_IN_ENTITY];