mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-07 00:15:48 -04:00
parent
3cca51bfc8
commit
0a87489756
@ -493,7 +493,7 @@ void QgsMapToolCapture::setCurrentShapeMapTool( const QgsMapToolShapeMetadata *s
|
||||
void QgsMapToolCapture::cadCanvasMoveEvent( QgsMapMouseEvent *e )
|
||||
{
|
||||
// If we are adding a record to a non-spatial layer, just return
|
||||
if ( mCaptureModeFromLayer && !canvas()->currentLayer()->isSpatial() )
|
||||
if ( mCaptureModeFromLayer && ( !canvas()->currentLayer() || !canvas()->currentLayer()->isSpatial() ) )
|
||||
return;
|
||||
|
||||
QgsMapToolAdvancedDigitizing::cadCanvasMoveEvent( e );
|
||||
|
Loading…
x
Reference in New Issue
Block a user