<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - CRASH: Chart: Changing properties in different objects"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=133630#c15">Comment # 15</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - CRASH: Chart: Changing properties in different objects"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=133630">bug 133630</a>
from <span class="vcard"><a class="email" href="mailto:michael.meeks@collabora.com" title="Michael Meeks <michael.meeks@collabora.com>"> <span class="fn">Michael Meeks</span></a>
</span></b>
<pre>Hi Leyan, I'm interested in your sanity-check as a patch. It's curious that the
chart sidebars are particularly problematic in this regard - then again - if
there is no chart selected they should behave quiescently (I would hope):
OUString getCID(const css::uno::Reference<css::frame::XModel>& xModel)
{
css::uno::Reference<css::frame::XController>
xController(xModel->getCurrentController());
css::uno::Reference<css::view::XSelectionSupplier>
xSelectionSupplier(xController, css::uno::UNO_QUERY);
if (!xSelectionSupplier.is())
return OUString();
uno::Any aAny = xSelectionSupplier->getSelection();
assert(aAny.hasValue());
OUString aCID;
aAny >>= aCID;
#if defined DBG_UTIL && !defined NDEBUG
ObjectType eType = ObjectIdentifier::getObjectType(aCID);
assert(eType == OBJECTTYPE_AXIS);
#endif
return aCID;
}
could happily return an empty string instead of asserting in dbgutil mode - or
(perhaps more helpfully) logging a warning instead of asserting.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>