diff options
author | Danilo Egea Gondolfo <danilo@FreeBSD.org> | 2015-11-29 14:38:20 +0000 |
---|---|---|
committer | Danilo Egea Gondolfo <danilo@FreeBSD.org> | 2015-11-29 14:38:20 +0000 |
commit | 5b2529cf2b63dbbe04d6839c04a8d816ca891f89 (patch) | |
tree | ea16ecf55bd25405d935327ce510d76680a55af5 /games | |
parent | Upgrade www/elixir-maru to version 0.9.0. (diff) |
- Fix build in FreeBSD 9
Notes
Notes:
svn path=/head/; revision=402598
Diffstat (limited to 'games')
-rw-r--r-- | games/solarus-quest-editor/files/patch-include_gui_plain__text__edit.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/games/solarus-quest-editor/files/patch-include_gui_plain__text__edit.h b/games/solarus-quest-editor/files/patch-include_gui_plain__text__edit.h new file mode 100644 index 000000000000..e95c77889403 --- /dev/null +++ b/games/solarus-quest-editor/files/patch-include_gui_plain__text__edit.h @@ -0,0 +1,11 @@ +--- include/gui/plain_text_edit.h.orig 2015-11-29 14:07:34 UTC ++++ include/gui/plain_text_edit.h +@@ -73,7 +73,7 @@ protected: + if (show_margin) { + const QRect rect = event->rect(); + const QFont font = currentCharFormat().font(); +- int x = std::round(QFontMetrics(font).maxWidth() * margin) ++ int x = ::round(QFontMetrics(font).maxWidth() * margin) + + contentOffset().x() + + document()->documentMargin(); + |