Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrPanov committed Sep 2, 2022
1 parent de41bb9 commit 933ef5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/aruco/src/aruco_detector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ bool DetectorParameters::readDetectorParameters(const FileNode& fn) {

bool DetectorParameters::writeDetectorParameters(const Ptr<FileStorage>& fs)
{
if (fs.empty() && !fs->isOpened())
if (fs.empty() || !fs->isOpened())
return false;
return readWrite(*this, nullptr, fs);
}
Expand Down

0 comments on commit 933ef5f

Please sign in to comment.