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