Skip to content

Commit

Permalink
TD: fixes FreeCAD#12984: Doing Ctrl-Z in TechDraw reliably causes a s…
Browse files Browse the repository at this point in the history
…egfault
  • Loading branch information
wwmayer authored and davesrocketshop committed Mar 16, 2024
1 parent 0e123b3 commit c19dedf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Mod/TechDraw/Gui/ViewProviderViewPart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,12 @@ int ViewProviderViewPart::prefHighlightStyle()
// TODO: does this need to be implemented for Leaderlines and ???? others?
void ViewProviderViewPart::fixSceneDependencies()
{
auto scene = getViewProviderPage()->getQGSPage();
auto page = getViewProviderPage();
if (!page) {
return;
}

auto scene = page->getQGSPage();
auto partQView = getQView();

auto dimensions = getViewPart()->getDimensions();
Expand Down

0 comments on commit c19dedf

Please sign in to comment.