Skip to content


Additional fix for #5862 fix.
Browse files Browse the repository at this point in the history
Editing text for composer label in text edit widget caused label to emit itemChanged(), which caused cyclical update of gui elements and the cursor to jump to end of text edit's text.
Tested update of label via Python and #5862 fix still works, i.e. text edit updates as well.
  • Loading branch information
dakcarto committed Jul 5, 2012
1 parent aa8cccb commit 5f9f76e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/composer/qgscomposerlabelwidget.cpp
Expand Up @@ -42,8 +42,10 @@ void QgsComposerLabelWidget::on_mTextEdit_textChanged()
if ( mComposerLabel )
mComposerLabel->beginCommand( tr( "Label text changed" ), QgsComposerMergeCommand::ComposerLabelSetText );
mComposerLabel->blockSignals( true );
mComposerLabel->setText( mTextEdit->toPlainText() );
mComposerLabel->blockSignals( false );
Expand Down

0 comments on commit 5f9f76e

Please sign in to comment.