[gedit-code-assistance] Fix potential crash in gca-diagnostic-message get_preferred_height()
- From: Elad Alfassa <eladalfassa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-code-assistance] Fix potential crash in gca-diagnostic-message get_preferred_height()
- Date: Fri, 5 Sep 2014 15:03:26 +0000 (UTC)
commit a44cf7f9b6dc23ba274d070b758924684f24ae0d
Author: Elad Alfassa <elad fedoraproject org>
Date: Fri Sep 5 18:00:00 2014 +0300
Fix potential crash in gca-diagnostic-message get_preferred_height()
src/gca-diagnostic-message.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gca-diagnostic-message.vala b/src/gca-diagnostic-message.vala
index 82a4bf0..89e9d3f 100644
--- a/src/gca-diagnostic-message.vala
+++ b/src/gca-diagnostic-message.vala
@@ -377,8 +377,9 @@ class DiagnosticMessage : EventBox
out int natural_height)
{
int minwidth;
+ int natwidth;
- get_preferred_width(out minwidth, null);
+ get_preferred_width(out minwidth, out natwidth);
get_preferred_height_for_width(minwidth, out minimum_height, out natural_height);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]