From 0034c2c7ee0a644aac9d43e2d37661dc89e96003 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 18 Sep 2017 05:52:59 +0300 Subject: Fix unit tests compilation. --- src/unittests/gui/widgets/browserbox.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/unittests/gui/widgets/browserbox.cc b/src/unittests/gui/widgets/browserbox.cc index a6ad9773d..46a5f3b23 100644 --- a/src/unittests/gui/widgets/browserbox.cc +++ b/src/unittests/gui/widgets/browserbox.cc @@ -79,8 +79,10 @@ TEST_CASE("BrowserBox tests", "browserbox") gui = new Gui(); gui->postInit(mainGraphics); - Widget::setGlobalFont(new Font("/usr/share/fonts/truetype/" - "ttf-dejavu/DejaVuSans-Oblique.ttf", 18)); + Widget::setGlobalFont(new Font( + "/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf", + 18, + TTF_STYLE_NORMAL)); BrowserBox *const box = new BrowserBox(nullptr, Opaque_true, ""); -- cgit v1.2.3-70-g09d2