From e82a999c2db5d7552631a0188ed1c273f8f15dc8 Mon Sep 17 00:00:00 2001 From: Richard Fairhurst Date: Mon, 22 Nov 2010 15:19:31 +0000 Subject: [PATCH] fix vector background dialogue to cope with changed stylesheets object --- net/systemeD/potlatch2/VectorSourceDialog.mxml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/net/systemeD/potlatch2/VectorSourceDialog.mxml b/net/systemeD/potlatch2/VectorSourceDialog.mxml index 732d7dc2..ef00a4e3 100644 --- a/net/systemeD/potlatch2/VectorSourceDialog.mxml +++ b/net/systemeD/potlatch2/VectorSourceDialog.mxml @@ -24,8 +24,9 @@ + change="outerDocument.styleEdited(data.name,selectedItem.url)" + dataProvider="{outerDocument.styles}" + labelField="name" /> @@ -86,7 +87,7 @@ public function whichStyle(item:Object):Object { for each (var style:Object in styles) { - if (style.data==item.style) { return style; } + if (style.url==item.style) { return style; } } return {}; } -- 2.30.0