Skip to content

Commit

Permalink
PD: [skip ci] fix UTF-8 handling in Hole feature
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Aug 21, 2022
1 parent a72bf21 commit 145c3bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mod/PartDesign/App/FeatureHole.cpp
Expand Up @@ -48,6 +48,7 @@
#include <App/DocumentObject.h>
#include <Base/Placement.h>
#include <Base/Reader.h>
#include <Base/Stream.h>
#include <Base/Tools.h>
#include <Mod/Part/App/FaceMakerCheese.h>

Expand Down Expand Up @@ -2295,7 +2296,7 @@ void Hole::readCutDefinitions()
for (const auto& f : files) {
if (f.extension() == "json") {
try {
std::ifstream input(f.filePath());
Base::ifstream input(f);
nlohmann::json j;
input >> j;
CutDimensionSet screwtype = j.get<CutDimensionSet>();
Expand Down

0 comments on commit 145c3bf

Please sign in to comment.