Fix copying and pasting image requests.

pull/238/head
whitequark 2017-04-08 17:17:38 +00:00
parent 99f6ea34f1
commit 287bd98a3f
2 changed files with 3 additions and 0 deletions

View File

@ -104,6 +104,7 @@ void GraphicsWindow::CopySelection() {
cr.style = e->style; cr.style = e->style;
cr.str = e->str; cr.str = e->str;
cr.font = e->font; cr.font = e->font;
cr.file = e->file;
cr.construction = e->construction; cr.construction = e->construction;
{for(int i = 0; i < pts; i++) { {for(int i = 0; i < pts; i++) {
Vector pt; Vector pt;
@ -168,6 +169,7 @@ void GraphicsWindow::PasteClipboard(Vector trans, double theta, double scale) {
r->style = cr->style; r->style = cr->style;
r->str = cr->str; r->str = cr->str;
r->font = cr->font; r->font = cr->font;
r->file = cr->file;
r->construction = cr->construction; r->construction = cr->construction;
// Need to regen to get the right number of points, if extraPoints // Need to regen to get the right number of points, if extraPoints
// changed. // changed.

View File

@ -912,6 +912,7 @@ public:
hStyle style; hStyle style;
std::string str; std::string str;
std::string font; std::string font;
Platform::Path file;
bool construction; bool construction;
Vector point[MAX_POINTS_IN_ENTITY]; Vector point[MAX_POINTS_IN_ENTITY];