From 3b0c39774c378005536e34ddd3b6515336845e61 Mon Sep 17 00:00:00 2001 From: gerrit Date: Mon, 24 Nov 2014 10:29:15 +0100 Subject: [PATCH] fixed: fetch iterator after potential clear (thanks to K. Schwenk for the patch) --- Source/Contrib/ComplexSceneManager/OSGCSMWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Contrib/ComplexSceneManager/OSGCSMWindow.cpp b/Source/Contrib/ComplexSceneManager/OSGCSMWindow.cpp index ba65af327..bdb6bf345 100644 --- a/Source/Contrib/ComplexSceneManager/OSGCSMWindow.cpp +++ b/Source/Contrib/ComplexSceneManager/OSGCSMWindow.cpp @@ -338,8 +338,6 @@ void CSMWindow::changed(ConstFieldMaskArg whichField, MTouchData::MTouchBlobStore &vBlobsWC = editMTouchDataWC().getBlobStore(); - MTouchData::MTouchBlobStoreIt bWCIt = vBlobsWC.begin(); - #if 0 fprintf(stderr, "process\n=====================================\n"); fprintf(stderr, "input mtouch\n"); @@ -354,7 +352,9 @@ void CSMWindow::changed(ConstFieldMaskArg whichField, vBlobsWC.clear(); } - for(; bIt != bEnd; ++bIt) + MTouchData::MTouchBlobStoreIt bWCIt = vBlobsWC.begin(); + + for (; bIt != bEnd; ++bIt) { Vec2i vScreenC; -- 2.11.4.GIT