Commit b14baefb authored by Adam Reichold's avatar Adam Reichold Committed by Albert Astals Cid

Explicitly anchor destructor of text_box_data to avoid linker errors using Clang on Mac OS X.

parent 4afe2fb1
......@@ -3,6 +3,7 @@
* Copyright (C) 2017, Albert Astals Cid <aacid@kde.org>
* Copyright (C) 2017, Jason Alan Palmer <jalanpalmer@gmail.com>
* Copyright (C) 2018, Suzuki Toshiya <mpsuzuki@hiroshima-u.ac.jp>
* Copyright (C) 2018, Adam Reichold <adam.reichold@t-online.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -290,6 +291,8 @@ ustring page::text(const rectf &r, text_layout_enum layout_mode) const
/*
* text_box object for page::text_list()
*/
text_box_data::~text_box_data() = default;
text_box::~text_box() = default;
text_box::text_box(text_box_data *data) : m_data{data}
......
......@@ -4,6 +4,7 @@
* Copyright (C) 2014, Hans-Peter Deifel <hpdeifel@gmx.de>
* Copyright (C) 2016 Jakub Alba <jakubalba@gmail.com>
* Copyright (C) 2018, Suzuki Toshiya <mpsuzuki@hiroshima-u.ac.jp>
* Copyright (C) 2018, Adam Reichold <adam.reichold@t-online.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -70,6 +71,8 @@ void delete_all(const Collection &c)
struct text_box_data
{
~text_box_data();
ustring text;
rectf bbox;
std::vector<rectf> char_bboxes;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment