-
-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] GLWindow.ZoomToMap() is missing positional argument 'layers' #4878
Comments
Hi @echoix, |
|
I've already got it fixed, the current commit in a staging branch I have is echoix@91b3b25. This branch is only waiting for my last two PRs made during the holidays to be merged (#4880 and #4876, #4880 was already approved but lost it after addressing some review comments), as it was all done incrementally but not committed, and got committed afterwards, so it's all in some random orders. The PRs were made by grouping some commits together that made sense in another branch. I kept my staging branch rebased after each PR merged. |
My fix prevents the error, but even after working a bit for it, I didn't get to have the real functionality implemented (using the layers argument, I think I understand why the comment says it is still unused so far) |
Describe the bug
Error occurs when clicking on a first (vector) layer from the data tab. No problem right clicking a layer in the layers box and clicking Zoom to layer.
To reproduce
Expected behavior
Screenshots
System description
Operating System: Windows 11 24H226100.2605
GRASS GIS version: 8.5.0dev, from osgeo4w grass-dev 429 grass-dev-8.5-429-d6dec75dd-1 for commit d6dec75
Originally found on Ubuntu 22.04 through WSL on the same windows computer, compiled from source, python 3.12.7, wxPython 4.2.2 too.
details about further software components
g.version -rge
in a GRASS GIS terminal session or check inthe GUI menu "Help > About"
python3 -c "import sys, wx; print(sys.version); print(wx.version())"
to print the Python and wxPython version numbers
Additional context
I have a solution, to make the layer argument optional, and it works here.
The text was updated successfully, but these errors were encountered: