744 { |
744 { |
745 if (data->gridLayer != nullptr and data->tools != nullptr and data->canvas != nullptr) |
745 if (data->gridLayer != nullptr and data->tools != nullptr and data->canvas != nullptr) |
746 { |
746 { |
747 data->gridLayer->setGridMatrix(newGridMatrix); |
747 data->gridLayer->setGridMatrix(newGridMatrix); |
748 data->tools->setGridMatrix(newGridMatrix); |
748 data->tools->setGridMatrix(newGridMatrix); |
|
749 data->canvas->setModelViewOrigin(newGridMatrix[3]); |
749 data->canvas->update(); |
750 data->canvas->update(); |
750 } |
751 } |
751 }); |
752 }); |
752 } |
753 } |
753 ); |
754 ); |