Skip to content
Permalink
Browse files

Fix for ticket #4414 (svg indicators for arrows are not shown)

  • Loading branch information
marco
marco committed Oct 22, 2011
1 parent 69fc303 commit b2b81366f9ff4f7fdebf879b2ab25f8cc8346f18
Showing with 7 additions and 7 deletions.
  1. +5 −5 src/app/composer/qgscomposerarrowwidget.cpp
  2. +2 −2 src/app/composer/qgscomposerarrowwidget.h
@@ -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 );
}
@@ -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 );
}
@@ -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();

0 comments on commit b2b8136

Please sign in to comment.
You can’t perform that action at this time.