From cc827c6450ea976c7650006cd9bf448a3cafc374 Mon Sep 17 00:00:00 2001 From: Sergey Magidovich Date: Mon, 28 Dec 2015 15:19:32 +0300 Subject: [PATCH] Add default opening time to TimeTable when constucted from opening hours. --- editor/ui2oh.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/ui2oh.cpp b/editor/ui2oh.cpp index 3e22e2561a..10c0781804 100644 --- a/editor/ui2oh.cpp +++ b/editor/ui2oh.cpp @@ -184,6 +184,7 @@ bool MakeTimeTableSet(osmoh::OpeningHours const & oh, ui::TimeTableSet & tts) for (auto const & rulePart : oh.GetRule()) { ui::TimeTable tt; + tt.SetOpeningTime(tt.GetPredefinedOpeningTime()); // TODO(mgsergio): We don't handle cases with speciffic time off. // I.e. Mo-Fr 08-20; Fr 18:00-17:00 off.