X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fdocument.cpp;h=72a12c1ca7257d45f03ad51f9ca8cae65c78a2c8;hp=8a5635c7bb2aa6d833128fc626870794b12a5039;hb=85336af25da0c613460bbeda4ff7553933e13064;hpb=d83560835237d360f6d12776435e91676c8ab45f;ds=sidebyside diff --git a/src/document.cpp b/src/document.cpp index 8a5635c..72a12c1 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -284,7 +284,7 @@ void Document::Load(const string & filename) #endif } -unsigned Document::AddGroup(unsigned start_index, unsigned end_index, const Colour & shading) +unsigned Document::AddGroup(unsigned start_index, unsigned end_index, const Colour & fill) { Real xmin = 0; Real ymin = 0; Real xmax = 0; Real ymax = 0; @@ -306,7 +306,7 @@ unsigned Document::AddGroup(unsigned start_index, unsigned end_index, const Colo Rect bounds(xmin,ymin, xmax-xmin, ymax-ymin); - Group group = {start_index, end_index, shading}; + Group group(start_index, end_index, 0U, fill); unsigned data_index = AddGroupData(group); unsigned result = Add(GROUP, bounds,data_index);