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

AbstractGraph.cpp ('numPointsUsed' was not declared in this scope) #23

Open
aplastiras opened this issue Jan 18, 2019 · 1 comment
Open

Comments

@aplastiras
Copy link

Hello,

trying to implement a graph. In the first compile trial the error

'numPointsUsed' was not declared in this scope

appeared.

In the AbstractGraph.cpp file in the definition of invalidateLineFromIndex() line 325 (git file) the code looks like this:
void AbstractGraph::invalidateLineFromIndex(int index)

void AbstractGraph::invalidateLineFromIndex(int index)
{
    if (index >= 0 && index < numPointsUsed - 1)
    {
        invalidateRectContainingIndices(index, index + 1);
        if (linkedGraph)
        {
            linkedGraph->invalidateLineFromIndex(index);
        }
    }
}

the variable numPointsUsed is not declared indeed. I suppose the "numPoints" variable is the one to be used.

@zrrbite
Copy link
Contributor

zrrbite commented Jan 23, 2019

Hi aplastiras,

Thanks for the feedback. How are things looking when you use "numPoints" instead?

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