aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/proj/internal/io_internal.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/proj/internal/io_internal.hpp b/include/proj/internal/io_internal.hpp
index 8f1c3d68..3187440f 100644
--- a/include/proj/internal/io_internal.hpp
+++ b/include/proj/internal/io_internal.hpp
@@ -201,7 +201,7 @@ struct projCppContext {
return auxDbPaths_;
}
- void setAutoCloseDb(bool autoClose) { autoCloseDb_ = autoClose; }
+ void setAutoCloseDb(bool autoClose) { autoCloseDb_ = autoClose; autoCloseDbIfNeeded(); }
inline bool getAutoCloseDb() const { return autoCloseDb_; }
// cppcheck-suppress functionStatic