[Gambas-bugtracker] Bug #2073: Menu editor copy and Paste is faulty

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Thu Feb 4 03:25:34 CET 2021


http://gambaswiki.org/bugtracker/edit?object=BUG.2073&from=L21haW4-

Bruce STEERS reported a new bug.

Summary
-------

Menu editor copy and Paste is faulty

Type             : Bug
Priority         : Medium
Gambas version   : Master
Product          : Development Environment


Description
-----------

If i copy menu items from one app and paste into another i have the following problems...

I may select the last menu and then paste because i expect the paste to append to the end of the menu list.
But it does not, it pastes in the second to last place and the menu i selected for end positioning is then pushed to the end after the pasted items and needs moving up again to position.
This is resolved by first making a new menu item at the end, then pasting, then removing the newly made menu.

also if i have no menus at all and paste then there is an error occurs.
Out of bounds (#21)
FMenu.btnPaste_Click.911
To resolve I have again to create a new menu, then paste , then delete the created menu.

to summarise both problems are resolved by me first creating a temporary menu, then pasting, then deleting the temporary menu.

that's gotta be wrong.
It seems the insertion point of the paste is wrong
like it pastes at ThepositionYouWant-1


System information
------------------

[System]
Gambas=3.15.90
OperatingSystem=Linux
Kernel=5.10.7-1-default
Architecture=x86_64
Distribution=SuSE NAME="openSUSE Tumbleweed"
# VERSION="20210120"
ID="opensuse-tumbleweed"
ID_LIKE="opensuse suse"
VERSION_ID="20210120"
PRETTY_NAME="openSUSE Tumbleweed"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:tumbleweed:20210120"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"
DOCUMENTATION_URL="https://en.opensuse.org/Portal:Tumbleweed"
LOGO="distributor-logo"
Desktop=MATE
Theme=traditionalok
Language=en_GB.UTF-8
Memory=3808M

[Libraries]

[Environment]
AUDIODRIVER=pulseaudio
COLORTERM=1
CONFIG_SITE=/usr/share/site/x86_64-unknown-linux-gnu
CPU=x86_64
CSHEDIT=emacs
CVS_RSH=ssh
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DEBUGINFOD_URLS= 
DESKTOP_SESSION=mate
DISPLAY=:0
EDITOR=pluma
FROM_HEADER=
GB_GUI=gb.gtk3
GDMFLEXISERVER=/usr/libexec/lightdm/gdmflexiserver
GDMSESSION=mate
GIO_LAUNCHED_DESKTOP_FILE_PID=24906
GPG_TTY=not a tty
GTK_IM_MODULE=cedilla
GTK_MODULES=canberra-gtk-module
GTK_OVERLAY_SCROLLING=0
G_BROKEN_FILENAMES=1
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252
HISTSIZE=1000
HOME=<home>
HOST=<hostname>
HOSTNAME=localhost
HOSTTYPE=x86_64
JAVA_BINDIR=/usr/lib64/jvm/jre-openjdk/bin
JAVA_HOME=/usr/lib64/jvm/jre-openjdk
JAVA_ROOT=/usr/lib64/jvm/jre-openjdk
JRE_HOME=/usr/lib64/jvm/java-11-openjdk-11
LANG=en_GB.UTF-8
LC_ALL=en_GB.UTF-8
LESS=-M -I -R
LESSCLOSE=lessclose.sh %s %s
LESSKEY=/usr/etc/lesskey.bin
LESSOPEN=lessopen.sh %s
LESS_ADVANCED_PREPROCESSOR=no
LOGNAME=<user>
MACHTYPE=x86_64-suse-linux
MAIL=/var/spool/mail/<user>
MANPATH=/usr/local/man:/usr/share/man
MATE_DESKTOP_SESSION_ID=this-is-deprecated
MINICOM=-c on
MORE=-sl
OSTYPE=linux
PAGER=less
PATH=<home>/bin:/usr/local/bin:/usr/bin:/bin
PROFILEREAD=true
PWD=<home>
PYTHONSTARTUP=/etc/pythonstart
QEMU_AUDIO_DRV=pa
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_IM_MODULE=xim
QT_IM_SWITCHER=imsw-multi
QT_LOGGING_RULES=*.debug=false
QT_QPA_PLATFORMTHEME=gtk2
QT_SCALE_FACTOR=1
SDL_AUDIODRIVER=pulse
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1123,unix/<hostname>:/tmp/.ICE-unix/1123
SHELL=/bin/bash
SHLVL=0
SSH_AGENT_PID=1514
SSH_ASKPASS=/usr/libexec/ssh/ssh-askpass
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TERM=xterm
TZ=:/etc/localtime
USER=<user>
WINDOWMANAGER=mate-session
XAUTHLOCALHOSTNAME=localhost
XAUTHORITY=<home>/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg:/usr/etc/xdg
XDG_CURRENT_DESKTOP=MATE
XDG_DATA_DIRS=<home>/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/<user>
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=mate
XDG_SESSION_ID=1
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SESSION_TYPE=x11
XDG_VTNR=7
XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
XMODIFIERS=@im=local
XNLSPATH=/usr/share/X11/nls
XSESSION_IS_UP=yes




More information about the Bugtracker mailing list