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

Error browsing boundary types in modifyBoundary in pyfield.cpp #132

Open
persei8 opened this issue Sep 11, 2015 · 0 comments
Open

Error browsing boundary types in modifyBoundary in pyfield.cpp #132

persei8 opened this issue Sep 11, 2015 · 0 comments

Comments

@persei8
Copy link

persei8 commented Sep 11, 2015

It will only work for the first boundary type in boundaryTypes(), the other valid boundary types will throw an exception

 // browse boundary types
    foreach (Module::BoundaryType boundaryType, sceneBoundary->fieldInfo()->boundaryTypes())
    {
        if (QString::fromStdString(type) == boundaryType.id())
        {
            sceneBoundary->setType(QString::fromStdString(type));
            break;
        }
        else
            throw invalid_argument(QObject::tr("Wrong boundary type '%1'.").arg(QString::fromStdString(type)).toStdString());
    }
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

1 participant