Skip to content

Commit e9cded4

Browse files
committed
Fix bug with loading subgroups
1 parent 8bdc76c commit e9cded4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Properties.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ auto FUSION_API GetPropValue(mv* const mV, SerializedEditData* serialized_edit_d
190190
{
191191
switch(property_id)
192192
{
193-
case PropId::Version : return new CPropStringValue(_T("Unicode, ") _T(__DATE__) _T(" (v0.4.4-popgoes)"));
193+
case PropId::Version : return new CPropStringValue(_T("Unicode, ") _T(__DATE__) _T(" (v0.4.5-velocitynoodle)"));
194194
case PropId::DefPath : return new CPropStringValue(serialized_edit_data->deserialize(std::nullopt).defaultFile.c_str());
195195
case PropId::DefFolder : return new CPropDWordValue (serialized_edit_data->deserialize(std::nullopt).defaultFolder);
196196
case PropId::DefaultText : return new CPropStringValue(serialized_edit_data->deserialize(std::nullopt).defaultText.c_str());

Runtime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ void Data::load(lSDK::string_view_t s)
370370

371371
auto [line, ending]{read_line(s, settings.newline, false)};
372372
s.remove_prefix(std::size(line) + std::size(ending));
373-
std::size_t const depth{settings.subgroups*s.find_first_not_of('\t')}; //0 if subgroups are disabled, otherwise count of number of indents
373+
std::size_t const depth{settings.subgroups*line.find_first_not_of('\t')}; //0 if subgroups are disabled, otherwise count of number of indents
374374
group_path.resize(depth + 1);
375375
line = trim(line);
376376
assert(!std::empty(line)); //should've been handled above

0 commit comments

Comments
 (0)