Skip to content

Commit

Permalink
Fix bug #72535
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyakovKirill authored and K0R0L committed Jan 20, 2025
1 parent da252bf commit 024efd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HwpFile/HwpDoc/HWPStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ void Trim(HWP_STRING& sValue)

HWP_STRING::const_reverse_iterator itEnd = std::find_if(sValue.crbegin(), sValue.crend(), [](wchar_t wChar){ return !iswcntrl(wChar); });

if (itEnd != sValue.crend())
if (itEnd != sValue.crbegin())
sValue.erase(itEnd.base());
}

Expand Down

0 comments on commit 024efd2

Please sign in to comment.