Skip to content

Commit

Permalink
Fixed #773
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartenHilferink committed Jul 25, 2024
1 parent 10d248f commit a86c37b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions geo/dll/src/BoostGeometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -464,12 +464,16 @@ auto bg_split_assign(RI resIter, const BG_MP& mp) -> RI
{
for (const auto& resLake : i->inners())
store_ring(*resIter, resLake);
auto currInner = i->inners().end() - 1;
while (currInner != i->inners().begin()) {
resIter->push_back(currInner->end()[-1]);
auto currInner = i->inners().end(), firstInner = i->inners().begin();
assert(currInner != firstInner);
--currInner;
while (currInner != firstInner) {
--currInner;
}
resIter->push_back(outerRing.end()[-1]);
assert(currInner->size());
resIter->emplace_back(currInner->end()[-1]);
} ;

resIter->emplace_back(outerRing.end()[-1]);
}
assert(resIter->size() == count);
}
Expand Down
2 changes: 1 addition & 1 deletion shv/dll/src/DataItemColumn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,7 @@ void DataItemColumn::FillMenu(MouseEventDispatcher& med)
auto sa = GetSrcAttr();
if (sa)
{
med.m_MenuData.emplace_back(mySSPrintF("Show Statistics of '%1'", caption.c_str()), new RequestClientCmd(sa, CC_ShowStatistics), this);
med.m_MenuData.emplace_back(mySSPrintF("Show Statistics of '%s'", caption.c_str()), new RequestClientCmd(sa, CC_ShowStatistics), this);
if (tc->HasSortOptions() && sa->GetValueComposition() == ValueComposition::Single)
{
med.m_MenuData.emplace_back(SharedStr("Sort"), make_MembFuncCmd(&DataItemColumn::SortAsc), this);
Expand Down

0 comments on commit a86c37b

Please sign in to comment.