Solve empty return for 'api.GetDatapath()' / (The pointer is dangling because it points at a temporary instance that was destroyed.)

This commit is contained in:
zdenop 2024-12-18 11:06:33 +01:00
parent c61f8f2111
commit 9251830af7

View File

@ -858,7 +858,7 @@ const char *TessBaseAPI::GetInputName() {
}
const char *TessBaseAPI::GetDatapath() {
return tesseract_->datadir.c_str();
return datapath_.c_str();
}
int TessBaseAPI::GetSourceYResolution() {