if(controller.mImpl->IsShowingPlaceholderText() ||
(0u == controller.mImpl->mModel->mLogicalModel->mText.Count()))
{
- controller.ShowPlaceholderText();
+ ShowPlaceholderText(*controller.mImpl);
}
}
if(controller.mImpl->IsShowingPlaceholderText() ||
(0u == controller.mImpl->mModel->mLogicalModel->mText.Count()))
{
- controller.ShowPlaceholderText();
+ ShowPlaceholderText(*controller.mImpl);
}
}
}
if(controller.mImpl->IsShowingPlaceholderText())
{
controller.mImpl->mModel->mVisualModel->SetTextColor(textColor);
+ controller.mImpl->mModel->mLogicalModel->mColorRuns.Clear();
+ controller.mImpl->mOperationsPending = static_cast<OperationsMask>(controller.mImpl->mOperationsPending | COLOR);
controller.mImpl->RequestRelayout();
}
}
}
}
-void Controller::PlaceholderHandler::ShowPlaceholderText(Controller& controller)
+void Controller::PlaceholderHandler::ShowPlaceholderText(Controller::Impl& impl)
{
- Controller::Impl& impl = *controller.mImpl;
-
if(impl.IsPlaceholderAvailable())
{
EventData*& eventData = impl.mEventData;