Skip to content

Commit d2503d5

Browse files
marcomach0
marco
authored andcommittedNov 13, 2011
Fix for ticket #4414 (svg indicators for arrows are not shown)
1 parent bc8c41d commit d2503d5

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed
 

‎src/app/composer/qgscomposerarrowwidget.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,13 @@ void QgsComposerArrowWidget::on_mSvgMarkerRadioButton_toggled( bool toggled )
184184
}
185185
}
186186

187-
void QgsComposerArrowWidget::on_mStartMarkerLineEdit_editingFinished( const QString & text )
187+
void QgsComposerArrowWidget::on_mStartMarkerLineEdit_textChanged( const QString & text )
188188
{
189189
if ( mArrow )
190190
{
191191
mArrow->beginCommand( tr( "Arrow start marker" ) );
192192
QFileInfo fi( text );
193-
if ( fi.exists() )
193+
if ( fi.exists() && fi.isFile() )
194194
{
195195
mArrow->setStartMarker( text );
196196
}
@@ -203,13 +203,13 @@ void QgsComposerArrowWidget::on_mStartMarkerLineEdit_editingFinished( const QStr
203203
}
204204
}
205205

206-
void QgsComposerArrowWidget::on_mEndMarkerLineEdit_editingFinished( const QString & text )
206+
void QgsComposerArrowWidget::on_mEndMarkerLineEdit_textChanged( const QString & text )
207207
{
208208
if ( mArrow )
209209
{
210-
mArrow->beginCommand( tr( "Arrow start marker" ) );
210+
mArrow->beginCommand( tr( "Arrow end marker" ) );
211211
QFileInfo fi( text );
212-
if ( fi.exists() )
212+
if ( fi.exists() && fi.isFile() )
213213
{
214214
mArrow->setEndMarker( text );
215215
}

‎src/app/composer/qgscomposerarrowwidget.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ class QgsComposerArrowWidget: public QWidget, private Ui::QgsComposerArrowWidget
4646
void on_mDefaultMarkerRadioButton_toggled( bool toggled );
4747
void on_mNoMarkerRadioButton_toggled( bool toggled );
4848
void on_mSvgMarkerRadioButton_toggled( bool toggled );
49-
void on_mStartMarkerLineEdit_editingFinished( const QString & text );
50-
void on_mEndMarkerLineEdit_editingFinished( const QString & text );
49+
void on_mStartMarkerLineEdit_textChanged( const QString & text );
50+
void on_mEndMarkerLineEdit_textChanged( const QString & text );
5151
void on_mStartMarkerToolButton_clicked();
5252
void on_mEndMarkerToolButton_clicked();
5353

0 commit comments

Comments
 (0)
Please sign in to comment.