diff --git a/common/plotters/PDF_plotter.cpp b/common/plotters/PDF_plotter.cpp index b5422a80c3..7b5e511b8f 100644 --- a/common/plotters/PDF_plotter.cpp +++ b/common/plotters/PDF_plotter.cpp @@ -840,9 +840,9 @@ void PDF_PLOTTER::ClosePage() VECTOR2I bottomLeft = iuToPdfUserSpace( box.GetPosition() ); VECTOR2I topRight = iuToPdfUserSpace( box.GetEnd() ); - int actionHandle = emitGoToAction( pageHandle, bottomLeft, topRight ); + int curr_actionHandle = emitGoToAction( pageHandle, bottomLeft, topRight ); - addOutlineNode( groupOutlineNode, actionHandle, ref ); + addOutlineNode( groupOutlineNode, curr_actionHandle, ref ); } std::sort( groupOutlineNode->children.begin(), groupOutlineNode->children.end(), diff --git a/include/plotters/plotters_pslike.h b/include/plotters/plotters_pslike.h index 19cd2f6d11..03ca781801 100644 --- a/include/plotters/plotters_pslike.h +++ b/include/plotters/plotters_pslike.h @@ -377,7 +377,7 @@ protected: { OUTLINE_NODE* child = new OUTLINE_NODE { - aActionHandle, aTitle, aEntryHandle + aActionHandle, aTitle, aEntryHandle, {} }; children.push_back( child );