Fix advance references to units that have variations

Reported by bumbadadabum
This commit is contained in:
Alexander van Gessel 2013-11-05 15:23:04 +01:00
parent 2b61f2a897
commit 7feeeb33c4

View File

@ -1372,7 +1372,8 @@ public:
std::string lang_unit = type->type_name();
std::string ref_id;
if (description_type(*type) == FULL_DESCRIPTION) {
ref_id = unit_prefix + type->id();
const std::string section_prefix = type->variations().empty() ? "" : "..";
ref_id = section_prefix + unit_prefix + type->id();
} else {
ref_id = unknown_unit_topic;
lang_unit += " (?)";