Skip to content

Commit

Permalink
Fix for ticket #4414 (svg indicators for arrows are not shown)
Browse files Browse the repository at this point in the history
  • Loading branch information
marco committed Oct 22, 2011
1 parent 500c538 commit 232f161
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/app/composer/qgscomposerarrowwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,13 @@ void QgsComposerArrowWidget::on_mSvgMarkerRadioButton_toggled( bool toggled )
}
}

void QgsComposerArrowWidget::on_mStartMarkerLineEdit_editingFinished( const QString & text )
void QgsComposerArrowWidget::on_mStartMarkerLineEdit_textChanged( const QString & text )
{
if ( mArrow )
{
mArrow->beginCommand( tr( "Arrow start marker" ) );
QFileInfo fi( text );
if ( fi.exists() )
if ( fi.exists() && fi.isFile() )
{
mArrow->setStartMarker( text );
}
Expand All @@ -203,13 +203,13 @@ void QgsComposerArrowWidget::on_mStartMarkerLineEdit_editingFinished( const QStr
}
}

void QgsComposerArrowWidget::on_mEndMarkerLineEdit_editingFinished( const QString & text )
void QgsComposerArrowWidget::on_mEndMarkerLineEdit_textChanged( const QString & text )
{
if ( mArrow )
{
mArrow->beginCommand( tr( "Arrow start marker" ) );
mArrow->beginCommand( tr( "Arrow end marker" ) );
QFileInfo fi( text );
if ( fi.exists() )
if ( fi.exists() && fi.isFile() )
{
mArrow->setEndMarker( text );
}
Expand Down
4 changes: 2 additions & 2 deletions src/app/composer/qgscomposerarrowwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ class QgsComposerArrowWidget: public QWidget, private Ui::QgsComposerArrowWidget
void on_mDefaultMarkerRadioButton_toggled( bool toggled );
void on_mNoMarkerRadioButton_toggled( bool toggled );
void on_mSvgMarkerRadioButton_toggled( bool toggled );
void on_mStartMarkerLineEdit_editingFinished( const QString & text );
void on_mEndMarkerLineEdit_editingFinished( const QString & text );
void on_mStartMarkerLineEdit_textChanged( const QString & text );
void on_mEndMarkerLineEdit_textChanged( const QString & text );
void on_mStartMarkerToolButton_clicked();
void on_mEndMarkerToolButton_clicked();

Expand Down

0 comments on commit 232f161

Please sign in to comment.