Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Changes to vector on 0.93?

$
0
0

@sinsynplus wrote:

hello..

i'm having an issue with 0.93 on osx10.8/xcode 5..

i define my vector like this..
vector <vector <ofPoint> > line_points;

whenever i press z the last point of the active index should be deleted..
like this..

case 'z':
    if(line_points[selectedLineIndex].size()) {
        line_points[selectedLineIndex].erase(line_points[selectedLineIndex].end());

        if(selectedCornerIndex > line_points[selectedLineIndex].size()-1) {
            selectedCornerIndex = line_points[selectedLineIndex].size()-1;
        }
    }
    break;

this is working fine on 0.84..
on 0.93 the app compiles.. runs.. but when i press the z key it throws an exception and crashes..

hoping somebody can point me in the right direction..

thanks..
and greetz..

pls

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles