* 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:
@@ -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();
|
int32 count = fShape->CountTransformers();
|
||||||
for (int32 i = 0; i < count; i++)
|
for (int32 i = 0; i < count; i++)
|
||||||
_AddTransformer(fShape->TransformerAtFast(i), 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
|
||||||
|
|||||||
Reference in New Issue
Block a user