* you can now assign styles to shapes that had none assigned before

* Transformer menu is correctly enabled/disabled when a shape is selected


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19351 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2006-11-21 20:41:12 +00:00
parent 0512e98939
commit 464cd15f0a
2 changed files with 8 additions and 9 deletions
@@ -400,14 +400,13 @@ TransformerListView::SetShape(Shape* shape)
fShape = shape; fShape = shape;
if (!fShape) if (fShape) {
return; fShape->AddListener(this);
fShape->AddListener(this); int32 count = fShape->CountTransformers();
for (int32 i = 0; i < count; i++)
int32 count = fShape->CountTransformers(); _AddTransformer(fShape->TransformerAtFast(i), i);
for (int32 i = 0; i < count; i++) }
_AddTransformer(fShape->TransformerAtFast(i), i);
_UpdateMenu(); _UpdateMenu();
} }
@@ -38,7 +38,7 @@ AssignStyleCommand::~AssignStyleCommand()
status_t status_t
AssignStyleCommand::InitCheck() AssignStyleCommand::InitCheck()
{ {
return fShape && fOldStyle && fNewStyle ? B_OK : B_NO_INIT; return fShape && fNewStyle ? B_OK : B_NO_INIT;
} }
// Perform // Perform