From 07c39a0aca41c0bf2c08adf4e2412b7a342f21e0 Mon Sep 17 00:00:00 2001 From: Eric George Date: Thu, 8 Dec 2016 11:00:47 +0000 Subject: [PATCH] allow an index of zero for get file path --- src/ofxImageSequence.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ofxImageSequence.cpp b/src/ofxImageSequence.cpp index 47cc3aa..3d07ded 100644 --- a/src/ofxImageSequence.cpp +++ b/src/ofxImageSequence.cpp @@ -389,7 +389,7 @@ void ofxImageSequence::setFrameRate(float rate) } string ofxImageSequence::getFilePath(int index){ - if(index > 0 && index < filenames.size()){ + if(index >= 0 && index < filenames.size()){ return filenames[index]; } ofLogError("ofxImageSequence::getFilePath") << "Getting filename outside of range";