Skip to content
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

Crash when typing "^" in an empty equation #77

Closed
bsoelch opened this issue Sep 24, 2022 · 1 comment
Closed

Crash when typing "^" in an empty equation #77

bsoelch opened this issue Sep 24, 2022 · 1 comment

Comments

@bsoelch
Copy link
Contributor

bsoelch commented Sep 24, 2022

The application crashes when typing "^" into an empty equation

Traceback:

Traceback (most recent call last):
  File "/app/lib/python3.9/site-packages/plots/formularow.py", line 304, in edited
    body, expr = self.editor.expr.to_glsl()
  File "/app/lib/python3.9/site-packages/plots/elements/elements.py", line 307, in to_glsl
    string_stack[-1].insert(i, "mypow(")
UnboundLocalError: local variable 'i' referenced before assignment

Version:
0.8.2 (flatpak)

@alexhuntley
Copy link
Owner

Nice catch, thanks! Should be fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants