summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2023-09-23 10:37:54 +0200
committerJulien Nabet <serval2412@yahoo.fr>2023-09-24 09:00:26 +0200
commitaaccb43dad5290cde04b36209ca9fa95d69ba060 (patch)
tree2922fb7e6f0c41c4f2f5a05fd1d03f1f47c00d4b
parentc43d11cbbabc871a3c71062239b0d9b6db99961e (diff)
tdf#157288: "Primary key" missing when right click a field during table edition
Revert partly 0c2b2c9babfd781e0d9d68bb2a14a045b0c6ec4c "Use getXWeak in stoc" Change-Id: I0344510dee33c8740937354d64c0e60115606d26 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157178 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r--stoc/source/proxy_factory/proxyfac.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/stoc/source/proxy_factory/proxyfac.cxx b/stoc/source/proxy_factory/proxyfac.cxx
index 2653363b3c36..6745d0163c70 100644
--- a/stoc/source/proxy_factory/proxyfac.cxx
+++ b/stoc/source/proxy_factory/proxyfac.cxx
@@ -292,7 +292,8 @@ Any ProxyRoot::queryAggregation( Type const & rType )
OSL_ASSERT( cpp_env != nullptr );
// mind a new delegator, calculate current root:
- Reference< XInterface > xRoot(getXWeak());
+ Reference< XInterface > xRoot(
+ static_cast< OWeakObject * >(this), UNO_QUERY_THROW );
OUString oid;
(*cpp_env->getObjectIdentifier)( cpp_env, &oid.pData, xRoot.get() );
OSL_ASSERT( !oid.isEmpty() );