cinera.c: Keep non-topics out of cinera_topics.css

You would find @members and ~projects ending up in cinera_topics.css if
they were preceded by a topic :category in their annotation
This commit is contained in:
Matt Mascarenhas 2018-01-05 23:47:00 +00:00
parent 7d88e3c17d
commit b55f20dcb1
1 changed files with 17 additions and 16 deletions

View File

@ -14,7 +14,7 @@ typedef struct
version CINERA_APP_VERSION = { version CINERA_APP_VERSION = {
.Major = 0, .Major = 0,
.Minor = 5, .Minor = 5,
.Patch = 19 .Patch = 20
}; };
// TODO(matt): Copy in the DB 3 stuff from cinera_working.c // TODO(matt): Copy in the DB 3 stuff from cinera_working.c
@ -1476,8 +1476,6 @@ InsertCategory(categories *GlobalTopics, categories *LocalTopics, categories *Gl
++GlobalTopics->Count; ++GlobalTopics->Count;
} }
return;
} }
void void
@ -2844,6 +2842,8 @@ AppendedIdentifier:
} }
while(MarkerIndex < Anno->marker_count) while(MarkerIndex < Anno->marker_count)
{
if(Anno->markers[MarkerIndex].type == HMML_CATEGORY)
{ {
switch(GenerateTopicColours(Anno->markers[MarkerIndex].marker)) switch(GenerateTopicColours(Anno->markers[MarkerIndex].marker))
{ {
@ -2860,6 +2860,7 @@ AppendedIdentifier:
HasFilterMenu = TRUE; HasFilterMenu = TRUE;
} }
InsertCategory(&Topics, &LocalTopics, &Media, &LocalMedia, Anno->markers[MarkerIndex].marker); InsertCategory(&Topics, &LocalTopics, &Media, &LocalMedia, Anno->markers[MarkerIndex].marker);
}
++MarkerIndex; ++MarkerIndex;
} }