sc/source/ui/view/cellsh.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 3f4bedb567724a6aade54489b022a447193cb490 Author: Babacea Alexandru <[email protected]> AuthorDate: Fri Jul 4 10:49:38 2025 +0000 Commit: Heiko Tietze <[email protected]> CommitDate: Mon Jul 7 14:30:24 2025 +0200 tdf#154603 Disable 'Paste Transposed' when source is not from LO The 'Paste Transposed' command is hidden from the context menu and greyed out in the toolbar menu when clipboard contents come from outside LibreOffice. This prevents user confusion, as the action is non-functional in those cases. Change-Id: Ie4eceea7a09350d84e941256c426877c8386a8a5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187383 Reviewed-by: Heiko Tietze <[email protected]> Tested-by: Jenkins diff --git a/sc/source/ui/view/cellsh.cxx b/sc/source/ui/view/cellsh.cxx index b31c6a905f95..3f0ffb986286 100644 --- a/sc/source/ui/view/cellsh.cxx +++ b/sc/source/ui/view/cellsh.cxx @@ -644,6 +644,12 @@ void ScCellShell::GetClipState( SfxItemSet& rSet ) bDisable = true; } + if (!ScTransferObj::GetOwnClipboard( + ScTabViewShell::GetClipData(GetViewData().GetActiveWin()))) + { + rSet.DisableItem( SID_PASTE_TRANSPOSED ); + } + if (bDisable) { rSet.DisableItem( SID_PASTE );
