X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/42cfaf8cd4464466398ed888cb2caa5ee360c7ef..2910dac85f655c9beae54b3d5c723237eda3e6f6:/utils/ogl/src/divided.cpp diff --git a/utils/ogl/src/divided.cpp b/utils/ogl/src/divided.cpp index efee471e62..9768075e72 100644 --- a/utils/ogl/src/divided.cpp +++ b/utils/ogl/src/divided.cpp @@ -186,7 +186,7 @@ bool wxDividedShape::GetAttachmentPosition(int attachment, double *x, double *y, wxLineShape *line) { int totalNumberAttachments = (GetRegions().Number() * 2) + 2; - if (!GetAttachmentMode() || (attachment >= totalNumberAttachments)) + if ((GetAttachmentMode() == ATTACHMENT_MODE_NONE) || (attachment >= totalNumberAttachments)) { return wxShape::GetAttachmentPosition(attachment, x, y, nth, no_arcs); } @@ -305,7 +305,7 @@ bool wxDividedShape::GetAttachmentPosition(int attachment, double *x, double *y, return TRUE; } -int wxDividedShape::GetNumberOfAttachments() +int wxDividedShape::GetNumberOfAttachments() const { // There are two attachments for each region (left and right), // plus one on the top and one on the bottom. @@ -418,14 +418,14 @@ void wxDividedShape::ResetMandatoryControlPoints() } #ifdef PROLOGIO -void wxDividedShape::WritePrologAttributes(wxExpr *clause) +void wxDividedShape::WriteAttributes(wxExpr *clause) { - wxRectangleShape::WritePrologAttributes(clause); + wxRectangleShape::WriteAttributes(clause); } -void wxDividedShape::ReadPrologAttributes(wxExpr *clause) +void wxDividedShape::ReadAttributes(wxExpr *clause) { - wxRectangleShape::ReadPrologAttributes(clause); + wxRectangleShape::ReadAttributes(clause); } #endif