This commit is contained in:
mfeemster 2015-07-29 17:35:38 -07:00
commit 51df7b3681
3 changed files with 16 additions and 7 deletions

View File

@ -2726,7 +2726,7 @@ public:
string inside = "parVars[" + ToUpper(m_Params[i++].Name()) + index;
ss << "\t{\n"
<< "\t\treal_t r, delta = pow(precalcAtanyx / M_PI + 1, " << a << ");\n"
<< "\t\treal_t r, delta = pow(precalcAtanyx / (real_t)M_PI + 1, " << a << ");\n"
<< "\n"
<< "\t\tif (" << inside << " != 0)\n"
<< "\t\t r = xform->m_VariationWeights[" << varIndex << "] * delta / (precalcSqrtSumSquares + delta);\n"

View File

@ -6513,7 +6513,7 @@ SpinBox
<string>Copy selected xforms to the clipboard</string>
</property>
<property name="shortcut">
<string>Ctrl+Q</string>
<string>Ctrl+D</string>
</property>
</action>
<action name="ActionPasteSelectedXforms">
@ -6524,7 +6524,7 @@ SpinBox
<string>Paste copied xforms into the current flame</string>
</property>
<property name="shortcut">
<string>Ctrl+W</string>
<string>Ctrl+S</string>
</property>
</action>
<action name="ActionResetWorkspace">

View File

@ -44,9 +44,18 @@ int main(int argc, char *argv[])
"}" );
#endif
Fractorium w;
w.show();
a.installEventFilter(&w);
return a.exec();
int rv = -1;
try
{
Fractorium w;
w.show();
a.installEventFilter(&w);
rv = a.exec();
} catch (const char *e) {
QMessageBox::critical(0, "Fatal Error", e);
}
return rv;
}