You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When copying an object that has an attribute that contains multiline strings and pasting it into another project (and file), the pasted feature contains only the first line of the strings prefixed with a quotation mark. Additional empty features are created for each line of the string.
Steps to reproduce the issue
Create two projects.
In one of the projects, create and save a layer containing a string attribute (I used a point layer in a geopackage, not sure if the same bug occurs in other geometry and file formats).
Duplicate the file, add the copy to the second project.
In both layers, set the attribute form to use a multiline editor.
In one of the Projects, add a feature, and enter a text containing at least two lines. Save the layer.
Select the feature and copy it (e.g. using ctrl+c). The copied text is:
wkt_geom fid Text
Point (8.08380731245052253 53.5389454326587142) 1 "This is a string
that continues in a second line"
Go into the other project and paste it (ctrl+v).
There are multiple features in the attribute table. In the first one, there is only the first line of the string, prefixed with a ". The others are empty.
What is the bug or the crash?
When copying an object that has an attribute that contains multiline strings and pasting it into another project (and file), the pasted feature contains only the first line of the strings prefixed with a quotation mark. Additional empty features are created for each line of the string.
Steps to reproduce the issue
wkt_geom fid Text
Point (8.08380731245052253 53.5389454326587142) 1 "This is a string
that continues in a second line"
Versions
QGIS-Version
3.20.2-Odense
QGIS-Codeversion
9f59a15
Qt-Version
5.15.2
Python-Version
3.9.5
GDAL-Version
3.3.1
PROJ-Version
8.1.0
EPSG-Registraturdatenbankversion
v10.027 (2021-06-17)
GEOS-Version
3.9.1-CAPI-1.14.2
SQLite-Version
3.35.2
PDAL-Versio
2.3.0
PostgreSQL-Client-Version
13.0
SpatiaLite-Version
5.0.1
QWT-Version
6.1.3
QScintilla2-Version
2.11.5
BS-Version
Windows 10 Version 2009
and
QGIS-Version
3.16.9-Hannover
QGIS-Codeversion
9f8d2f7
Kompiliert gegen Qt
5.15.2
Laufendes Qt
5.15.2
Kompiliert mit GDAL/OGR
3.3.1
Läuft mit GDAL/OGR
3.3.1
Kompiliert mit GEOS
3.9.1-CAPI-1.14.2
Läuft mit GEOS
3.9.1-CAPI-1.14.2
Kompiliert mit SQLite
3.35.2
Läuft mit SQLite
3.35.2
PostgreSQL-Client-Version
13.0
SpatiaLite-Version
5.0.1
QWT-Version
6.1.3
QScintilla2-Version
2.11.5
Kompiliert mit PROJ
8.1.0
Läuft mit PROJ
Rel. 8.1.0, July 1st, 2021
BS-Version
Windows 10 Version 2009
Aktive Python-Erweiterungen
GeoCoding;
quick_map_services;
wfsclient;
db_manager;
MetaSearch;
processing
Aktive Python-Erweiterungen
GeoCoding
quick_map_services
wfsclient
db_manager
MetaSearch
processing
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: