Skip to content

Commit

Permalink
Merge pull request #3134 from Jojo-Schmitz/fix-windows-build
Browse files Browse the repository at this point in the history
fix Windows build after 51372d8
  • Loading branch information
lasconic committed Apr 11, 2017
2 parents 485dc4a + dc6c583 commit 4d0b87c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions libmscore/text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1524,7 +1524,7 @@ void Text::startEdit(EditData& ed)
// endEdit
//---------------------------------------------------------

void Text::endEdit(EditData& ed)
void Text::endEdit(EditData&)
{
static const qreal w = 2.0;
score()->addRefresh(canvasBoundingRect().adjusted(-w, -w, w, w));
Expand Down Expand Up @@ -2259,7 +2259,6 @@ QLineF Text::dragAnchor() const

void Text::paste(EditData& ed)
{
MuseScoreView* view = ed.view;
TextEditData* ted = static_cast<TextEditData*>(ed.getData(this));
TextCursor* _cursor = ted->cursor;

Expand Down Expand Up @@ -2405,8 +2404,8 @@ bool Text::acceptDrop(EditData& data) const

Element* Text::drop(EditData& data)
{
Element* e = data.element;
#if 0
Element* e = data.element;
switch(e->type()) {
case ElementType::SYMBOL:
{
Expand Down
2 changes: 1 addition & 1 deletion mscore/keyb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ void ScoreView::editKey(QKeyEvent* ev)
#ifdef Q_OS_WIN // Japenese IME on Windows needs to know when Contrl/Alt/Shift/CapsLock is pressed while in predit
if (editElement->isText()) {
Text* text = toText(editElement);
if (text->cursor()->format()->preedit() && QGuiApplication::inputMethod()->locale().script() == QLocale::JapaneseScript &&
if (text->cursor(editData)->format()->preedit() && QGuiApplication::inputMethod()->locale().script() == QLocale::JapaneseScript &&
((editData.key == Qt::Key_Control || (editData.modifiers & Qt::ControlModifier)) ||
(editData.key == Qt::Key_Alt || (editData.modifiers & Qt::AltModifier)) ||
(editData.key == Qt::Key_Shift || (editData.modifiers & Qt::ShiftModifier)) ||
Expand Down

0 comments on commit 4d0b87c

Please sign in to comment.