Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Viewing XML data as text #1159
Details for the issue
the issue is that given some xml content in a cell, the "edit database cell" view will not render the content as text, only as binary data, claiming that the content is an image and so cannot display the text.
*i think" this bug is triggered if a cell starts with the xml header followed by valid xml data.
Useful extra information
looking at https://github.com/sqlitebrowser/sqlitebrowser/blob/master/src/EditDialog.cpp
that function first checks to see if an image library can read the contents of the cell.
from that point on the cell is considered an image, and will not display text.
I'm opening this issue because:
I'm using DB4S on:
I'm using DB4S version:
I have also:
as a workaround, selecting your field as
you may need to adjust xml declaration to match your content
added a commit
Oct 5, 2017
I'm not entirely sure if this is actually a Qt bug because in their documentation they write:
And it's easy to fix this for us, too
Just for clarification: I think the Qt bug report by @justinclift is still valid. We can easily work around this issue in our code but we still profit from it if the Qt developers change the
currently the viewer does not render the image now when it recieves the null from the render later on.
Thanks for picking this up.