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

Use reasonable defaults or require user interactions #2

Open
mlt opened this issue Jun 25, 2012 · 0 comments
Open

Use reasonable defaults or require user interactions #2

mlt opened this issue Jun 25, 2012 · 0 comments
Labels

Comments

@mlt
Copy link
Owner

mlt commented Jun 25, 2012

If user accesses certain menu action from non-standard entry point, certain QGis settings may not be initialized.

@AlisterH reports

Enable the plugin, click to start the Time Series Plots or Spatial Plots module, select a simulation output which has already been calculated (e.g. from the sample data), and click "New Plot". QGIS will crash. If you use a debugger you will see that it is caused by a division by zero error in
TIME_STEP = TIME_STEP / p->readNumEntry("pihm", var.arg(index[variableIndex]));
or
int steps = p->readNumEntry("pihm", var.arg(index[comboBoxEleVariable->currentIndex()]));

It happens because scales are not set (or loaded via QgsProject).

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

No branches or pull requests

1 participant