From: Richard Fairhurst Date: Mon, 22 Nov 2010 15:19:31 +0000 (+0000) Subject: fix vector background dialogue to cope with changed stylesheets object X-Git-Tag: 0.5~46 X-Git-Url: https://git.openstreetmap.org/potlatch2.git/commitdiff_plain/e82a999c2db5d7552631a0188ed1c273f8f15dc8 fix vector background dialogue to cope with changed stylesheets object --- 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 {}; }