[Xastir] Object/item bugs
Curt, WE7U
archer at eskimo.com
Mon Aug 16 16:16:12 EDT 2004
On Fri, 13 Aug 2004, Curt, WE7U wrote:
> I see this in both main.c:Setup_object_data() and Setup_item_data():
>
>
> // We need to tack the comment on the end, but need to make
> // sure we don't go over the maximum length for an object.
> if (strlen(comment) != 0) {
>
> // Add a space first. It's required for multipoint polygons
> // in the comment field.
> line[strlen(line) + 1] = '\0';
> line[strlen(line)] = ' ';
>
> temp = 0;
> while ( (strlen(line) < 80) && (temp < (int)strlen(comment))) {
> line[strlen(line) + 1] = '\0';
> line[strlen(line)] = comment[temp++];
> }
> }
>
>
> So the space is required for multipoint objects. We could check
> whether a multipoint object was in the comment field and only add
> the space in that case. I'll check into doing that.
I've fixed it in CVS and in the latest development snapshot. The
space is only added when there's a multipoint object in the comment
field now.
--
Curt, WE7U http://www.eskimo.com/~archer
"Lotto: A tax on people who are bad at math." -- unknown
"Windows: Microsoft's tax on computer illiterates." -- WE7U
"The world DOES revolve around me: I picked the coordinate system!"
More information about the Xastir
mailing list