New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Viewing XML data as text #1159
Comments
as a workaround, selecting your field as you may need to adjust xml declaration to match your content |
@ajtag Filed a bug report for this with Qt: https://bugreports.qt.io/browse/QTBUG-63568 Lets give that a few days and see if it gets picked up there. If it does, we'll take a different approach for solving this in DB4S than if we need to update the DB4S code itself. 😄 |
I'm not entirely sure if this is actually a Qt bug because in their documentation they write:
(Source: https://doc.qt.io/qt-5/qimagereader.html#canRead) And it's easy to fix this for us, too 😄 I've just added the required code, so it'll be in the next nightly build. Can you download and test the next nightly build, @ajtag, and check if it's working for you as expected now? 😄 |
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. Angus |
Reading that line, I'm not sure what you're meaning. Might be just due to me being really tired though. 😄 |
Awesome, thanks for verifying @ajtag. @MKleusberg Looks like the second level check approach works well. Well done. 😄 |
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
there is a check to guess the type of cell contents, using "checkDataType(data)".
that function first checks to see if an image library can read the contents of the cell.
one assumes that the SVG image reader sees valid xml and says yes I can read that.
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:
no but have looked up issue in main branch
The text was updated successfully, but these errors were encountered: