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/solarus-quest-editor | |
parent | e83301ab7d10a2adbe3c0ccaf91b03158404a6d1 (diff) | |
download | ports-5b2529cf2b63dbbe04d6839c04a8d816ca891f89.tar.gz ports-5b2529cf2b63dbbe04d6839c04a8d816ca891f89.zip |
Notes
Diffstat (limited to 'games/solarus-quest-editor')
-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(); + |