* 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:
parent
0512e98939
commit
464cd15f0a
@ -400,14 +400,13 @@ TransformerListView::SetShape(Shape* shape)
|
||||
|
||||
fShape = shape;
|
||||
|
||||
if (!fShape)
|
||||
return;
|
||||
|
||||
fShape->AddListener(this);
|
||||
|
||||
int32 count = fShape->CountTransformers();
|
||||
for (int32 i = 0; i < count; i++)
|
||||
_AddTransformer(fShape->TransformerAtFast(i), i);
|
||||
if (fShape) {
|
||||
fShape->AddListener(this);
|
||||
|
||||
int32 count = fShape->CountTransformers();
|
||||
for (int32 i = 0; i < count; i++)
|
||||
_AddTransformer(fShape->TransformerAtFast(i), i);
|
||||
}
|
||||
|
||||
_UpdateMenu();
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ AssignStyleCommand::~AssignStyleCommand()
|
||||
status_t
|
||||
AssignStyleCommand::InitCheck()
|
||||
{
|
||||
return fShape && fOldStyle && fNewStyle ? B_OK : B_NO_INIT;
|
||||
return fShape && fNewStyle ? B_OK : B_NO_INIT;
|
||||
}
|
||||
|
||||
// Perform
|
||||
|
Loading…
Reference in New Issue
Block a user