diff options
Diffstat (limited to 'muse2/muse/midiedit')
-rw-r--r-- | muse2/muse/midiedit/ecanvas.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/muse2/muse/midiedit/ecanvas.cpp b/muse2/muse/midiedit/ecanvas.cpp index 94a7d0c8..8323a2f8 100644 --- a/muse2/muse/midiedit/ecanvas.cpp +++ b/muse2/muse/midiedit/ecanvas.cpp @@ -454,7 +454,8 @@ QMimeData* EventCanvas::getTextDrag() void EventCanvas::pasteAt(const QString& pt, int pos) { - const char* p = pt.toLatin1(); + QByteArray ba = pt.toLatin1(); + const char* p = ba.constData(); Xml xml(p); for (;;) { Xml::Token token = xml.parse(); |