[ease/animate_zoom: 1/6] Fix a Clutter runtime warning.
- From: Nate Stedman <natesm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ease/animate_zoom: 1/6] Fix a Clutter runtime warning.
- Date: Thu, 20 May 2010 03:37:39 +0000 (UTC)
commit 2e90fd09806552d554fede0c16652c554589cb9b
Author: Nate Stedman <natesm gmail com>
Date: Wed May 19 19:36:50 2010 -0400
Fix a Clutter runtime warning.
This was setting the position of the EditorEmbed's SlideActor as it was first given a size allocation, while SlideActor was still null.
src/libease/EditorEmbed.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/libease/EditorEmbed.vala b/src/libease/EditorEmbed.vala
index f17dfcb..cae6292 100644
--- a/src/libease/EditorEmbed.vala
+++ b/src/libease/EditorEmbed.vala
@@ -211,6 +211,11 @@ public class Ease.EditorEmbed : ScrollableEmbed
*/
public void reposition_group()
{
+ if (slide_actor == null)
+ {
+ return;
+ }
+
var w = zoom * document.width;
var h = zoom * document.height;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]