summaryrefslogtreecommitdiff
path: root/app/bin/compound.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2025-09-20 19:19:34 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2025-09-20 19:19:34 +0200
commite7d20cf352688bf717a01f4e6d9e6f497c2bea4c (patch)
treecfd2ef9b569f49af985a6f1ec44f2614f63c8e78 /app/bin/compound.c
parenta14a7a0ccc9de76aeab0b2e4bbf58f1a79deedc2 (diff)
New upstream version 5.3.1Beta2upstream/5.3.1Beta2
Diffstat (limited to 'app/bin/compound.c')
-rw-r--r--app/bin/compound.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/app/bin/compound.c b/app/bin/compound.c
index dea754d..d2ed27a 100644
--- a/app/bin/compound.c
+++ b/app/bin/compound.c
@@ -854,7 +854,7 @@ static void UpdateCompound( track_p trk, int inx, descData_p descUpd,
DrawCompoundDescription( trk, &mainD, wDrawColorWhite );
}
/*sprintf( message, "%s\t%s\t%s", manufS, nameS, partnoS );*/
- if (xx->title) { MyFree(xx->title); }
+ if (xx->title) { UndoDeferFree(xx->title); }
xx->title = newTitle;
xx->flipped = flipped;
xx->ungrouped = ungrouped;
@@ -1349,7 +1349,6 @@ BOOL_T ReadCompound(
char scale[10];
char *title;
wIndex_t layer;
- char *cp;
long options = 0;
long position = 0;
long lineType = 0;
@@ -1389,15 +1388,6 @@ BOOL_T ReadCompound(
return FALSE;
}
}
- if (paramVersion<6 && strlen( title ) > 2) {
- cp = strchr( title, '\t' );
- if (cp != NULL) {
- cp = strchr( cp, '\t' );
- }
- if (cp == NULL) {
- UpdateTitleMark( title, LookupScale(scale) );
- }
- }
trk = NewCompound( trkType, index, orig, angle, title, 0, NULL,
pathCnt > 1 ? pathPtr : NULL,
tempSegs_da.cnt, &tempSegs(0) );