diff -r 52d5884b753c -r 4f6e46a3bfc3 src/addObjectDialog.cpp --- a/src/addObjectDialog.cpp Tue Oct 22 13:49:55 2013 +0300 +++ b/src/addObjectDialog.cpp Tue Oct 22 13:53:24 2013 +0300 @@ -207,7 +207,7 @@ } if (defaults->hasMatrix()) - { LDMatrixObject* mo = obj ? dynamic_cast (obj) : null; + { LDMatrixObject* mo = dynamic_cast (obj); QLabel* lb_matrix = new QLabel ("Matrix:"); le_matrix = new QLineEdit; @@ -215,7 +215,7 @@ matrix defaultMatrix = g_identity; if (mo) - { for (const Axis ax : g_Axes) + { for (const Axis ax : g_Axes) dsb_coords[ax]->setValue (mo->position() [ax]); defaultMatrix = mo->transform();