Skip to content

Commit

Permalink
-fix for bug 11270
Browse files Browse the repository at this point in the history
  • Loading branch information
alemon-aquaveo committed Sep 20, 2018
1 parent 95f0428 commit e317bb9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion xmsstamper/stamper/XmStamper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ void XmStamperImpl::FillStamperIoFromCenterlineProfile(XmStamperIo& a_io,
m_interp->InterpFromCenterlineProfile(a_io, a_profile);
} // XmStamperImpl::FillStamperIoFromCenterlineProfile
//------------------------------------------------------------------------------
/// \brief Writes the XmStamperIo class to a file for debuggin
/// \brief Writes the XmStamperIo class to a file for debugging
//------------------------------------------------------------------------------
void XmStamperImpl::WriteInputsForDebug()
{
Expand Down
4 changes: 2 additions & 2 deletions xmsstamper/stamper/detail/XmBreaklines.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ bool XmBreaklinesImpl::CreateBreaklines(XmStamperIo& a_io, cs3dPtIdx& a_ptIdx, V
// left side shoulder and endpts
{
VecInt& v(a_ptIdx.m_xsPts.m_left[i]);
size_t leftIdx = static_cast<size_t>(a_io.m_cs[i].m_idxLeftShoulder - 1);
int leftIdx = std::max(a_io.m_cs[i].m_idxLeftShoulder - 1, 0);
if (!v.empty())
{
// break line for the end points of the cross sections
Expand All @@ -174,7 +174,7 @@ bool XmBreaklinesImpl::CreateBreaklines(XmStamperIo& a_io, cs3dPtIdx& a_ptIdx, V
// right side shoulder and endpts
{
VecInt& v(a_ptIdx.m_xsPts.m_right[i]);
size_t rightIdx = static_cast<size_t>(a_io.m_cs[i].m_idxRightShoulder - 1);
int rightIdx = std::max(a_io.m_cs[i].m_idxRightShoulder - 1, 0);
if (!v.empty())
{
// break line for the end points of the cross sections
Expand Down

0 comments on commit e317bb9

Please sign in to comment.