summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2018-09-21 18:35:24 +0200
committerAleks Kissinger <aleks0@gmail.com>2018-09-21 18:35:24 +0200
commit331c5d069e79b387eb8964c546dde8109ccf4798 (patch)
treeb7691414199034f7f7314bb48d1aad6d42537b0a /src/gui
parent1f57600e248bc4171dbf72e211b3b061045ebeb4 (diff)
fixed bug with fractional coordinates on linux
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/tikzscene.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/tikzscene.cpp b/src/gui/tikzscene.cpp
index 2a37014..1c6f0bb 100644
--- a/src/gui/tikzscene.cpp
+++ b/src/gui/tikzscene.cpp
@@ -621,6 +621,7 @@ void TikzScene::deleteSelectedItems()
void TikzScene::copyToClipboard()
{
Graph *g = graph()->copyOfSubgraphWithNodes(getSelectedNodes());
+ //qDebug() << g->tikz();
QGuiApplication::clipboard()->setText(g->tikz());
delete g;
}
@@ -641,8 +642,11 @@ void TikzScene::pasteFromClipboard()
// attempt to parse whatever's on the clipboard, if we get a
// non-empty tikz graph, insert it.
if (ass.parse(tikz) && !g->nodes().isEmpty()) {
+ qDebug() << "CLIPBOARD:" << tikz;
+ qDebug() << "PARSED:" << g->tikz();
// make sure names in the new subgraph are fresh
g->renameApart(graph());
+ qDebug() << "FRESH:" << g->tikz();
QRectF srcRect = g->realBbox();
QRectF tgtRect = graph()->realBbox();