From 30ce9cecd6fe2283ea187727bba0e53cb500b0ad Mon Sep 17 00:00:00 2001 From: wp_xxyyzz Date: Fri, 23 May 2025 09:58:12 +0000 Subject: [PATCH] LazMapViewer: Fix ZoomOnObj and ZoomOnArea methods to fire the OnZoomChange event. Issue #39125. git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9757 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/lazmapviewer/source/mvengine.pas | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/lazmapviewer/source/mvengine.pas b/components/lazmapviewer/source/mvengine.pas index 66699e774..09ddbde93 100644 --- a/components/lazmapviewer/source/mvengine.pas +++ b/components/lazmapviewer/source/mvengine.pas @@ -1626,6 +1626,11 @@ begin until (tmpWin.Zoom = 2); MapWin := tmpWin; Redraw(MapWin); + + if Assigned(OnZoomChange) then + OnZoomChange(Self); + if Assigned(OnChange) then + OnChange(Self); end; procedure TMapViewerEngine.CopyMapWindowFrom(AEngine: TMapViewerEngine);