From 534a56376ab27becedf05d9701aa0dad378240c8 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Sat, 7 Jun 2025 09:22:04 +0100 Subject: [PATCH] DBcellsrch.c: #ifdef ROUTE_MODULE around hook to update MZAttachHintPlanes() When building without this module MZInit() does not get called and MZAttachHintPlanes() does not guard against that situation. To allow unused code to be pruned from final binary, better to remove the cross module hook breaking the dependency. --- database/DBcellsrch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/database/DBcellsrch.c b/database/DBcellsrch.c index 354eadc3..1c9df83d 100644 --- a/database/DBcellsrch.c +++ b/database/DBcellsrch.c @@ -1525,8 +1525,10 @@ DBScaleEverything(scalen, scaled) /* Scale all elements */ DBWScaleElements(scalen, scaled); +#ifdef ROUTE_MODULE /* Recovery of global plane pointers */ MZAttachHintPlanes(); +#endif /* Modify root box */ ToolScaleBox(scalen, scaled);