Fix two issues detected by Flössie
This commit is contained in:
@@ -857,8 +857,7 @@ bool FramesData::hasIPTC (unsigned int frame) const
|
|||||||
tm FramesData::getDateTime (unsigned int frame) const
|
tm FramesData::getDateTime (unsigned int frame) const
|
||||||
{
|
{
|
||||||
if (frames.empty() || frame >= frames.size() ) {
|
if (frames.empty() || frame >= frames.size() ) {
|
||||||
tm emptytm = {0, 0, 0, 0, 0, 0, 0, 0, 0};
|
return {};
|
||||||
return emptytm;
|
|
||||||
} else {
|
} else {
|
||||||
return frames.at(frame)->getDateTime ();
|
return frames.at(frame)->getDateTime ();
|
||||||
}
|
}
|
||||||
|
@@ -17,9 +17,11 @@
|
|||||||
* along with RawTherapee. If not, see <http://www.gnu.org/licenses/>.
|
* along with RawTherapee. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "labimage.h"
|
#include <cstring>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
|
#include "labimage.h"
|
||||||
|
|
||||||
namespace rtengine
|
namespace rtengine
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user