mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
avoid warning messages on composer arrows without markers
This commit is contained in:
parent
b4b01550e4
commit
a838700801
@ -169,14 +169,14 @@ void QgsComposerArrow::drawSVGMarker( QPainter* p, MarkerType type, const QStrin
|
||||
QSvgRenderer r;
|
||||
if ( type == StartMarker )
|
||||
{
|
||||
if ( !r.load( mStartMarkerFile ) )
|
||||
if ( mStartMarkerFile.isEmpty() || !r.load( mStartMarkerFile ) )
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
else //end marker
|
||||
{
|
||||
if ( !r.load( mEndMarkerFile ) )
|
||||
if ( mEndMarkerFile.isEmpty() || !r.load( mEndMarkerFile ) )
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -215,7 +215,7 @@ void QgsComposerArrow::drawSVGMarker( QPainter* p, MarkerType type, const QStrin
|
||||
void QgsComposerArrow::setStartMarker( const QString& svgPath )
|
||||
{
|
||||
QSvgRenderer r;
|
||||
if ( !r.load( svgPath ) )
|
||||
if ( svgPath.isEmpty() || !r.load( svgPath ) )
|
||||
{
|
||||
return;
|
||||
// mStartArrowHeadHeight = 0;
|
||||
@ -231,7 +231,7 @@ void QgsComposerArrow::setStartMarker( const QString& svgPath )
|
||||
void QgsComposerArrow::setEndMarker( const QString& svgPath )
|
||||
{
|
||||
QSvgRenderer r;
|
||||
if ( !r.load( svgPath ) )
|
||||
if ( svgPath.isEmpty() || !r.load( svgPath ) )
|
||||
{
|
||||
return;
|
||||
// mStopArrowHeadHeight = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user