mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Minor : check if pointer is valid
This commit is contained in:
@@ -151,7 +151,7 @@ void ElementsMover::continueMovement(const QPointF &movement)
|
||||
conductor->updatePath();
|
||||
}
|
||||
|
||||
if (m_movement_driver)
|
||||
if (m_status_bar && m_movement_driver)
|
||||
{
|
||||
const auto point_{m_movement_driver->scenePos()};
|
||||
m_status_bar->showMessage(QString("x %1 : y %2").arg(QString::number(point_.x()), QString::number(point_.y())));
|
||||
|
||||
Reference in New Issue
Block a user