From 61b3323abbd5336f8b2950a1c49b1b48a9a6a874 Mon Sep 17 00:00:00 2001 From: "r.kuznetsov" Date: Thu, 27 Jul 2017 15:13:22 +0300 Subject: [PATCH] Fixed black background reading from styles --- indexer/drawing_rules.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/indexer/drawing_rules.cpp b/indexer/drawing_rules.cpp index 700f54399d..8b94774c05 100644 --- a/indexer/drawing_rules.cpp +++ b/indexer/drawing_rules.cpp @@ -481,13 +481,10 @@ void RulesHolder::InitBackgroundColors(ContainerProto const & cont) { // Take the color of the draw element AreaRuleProto const & rule = de.area(); - if (rule.color() != 0) - { - bgColorDefault = rule.color(); + bgColorDefault = rule.color(); - if (de.scale() != 0) - bgColorForScale.insert(make_pair(de.scale(), rule.color())); - } + if (de.scale() != 0) + bgColorForScale.insert(make_pair(de.scale(), rule.color())); } } break;