Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 872278 Details for
Bug 915344
app-office/libreoffice-7.5.6.2 delimited text files ('csv', 'tsv', etc.) are opened as text documents if Writer is the active window
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for 7.5.6.2
filterdetect-7.5.6.2.patch (text/plain), 1.43 KB, created by
turtle
on 2023-10-07 19:27:37 UTC
(
hide
)
Description:
patch for 7.5.6.2
Filename:
MIME Type:
Creator:
turtle
Created:
2023-10-07 19:27:37 UTC
Size:
1.43 KB
patch
obsolete
>diff --git a/filter/source/textfilterdetect/filterdetect.cxx b/filter/source/textfilterdetect/filterdetect.cxx >index 9d25e289ec89..41bdf1f7baab 100644 >--- a/filter/source/textfilterdetect/filterdetect.cxx >+++ b/filter/source/textfilterdetect/filterdetect.cxx >@@ -186,13 +186,14 @@ OUString SAL_CALL PlainTextFilterDetect::detect(uno::Sequence<beans::PropertyVal > > // Decide which filter to use based on the document service first, > // then on extension if that's not available. >- >- if (aDocService == CALC_DOCSERVICE) >+ if (aExt == "csv" || aExt == "tsv" || aExt == "tab" || aExt == "xls" || aName.endsWith(".csv.gz")) >+ aMediaDesc[MediaDescriptor::PROP_FILTERNAME] <<= OUString(CALC_TEXT_FILTER); >+ else if (aExt == "txt") >+ aMediaDesc[MediaDescriptor::PROP_FILTERNAME] <<= OUString(WRITER_TEXT_FILTER); >+ else if (aDocService == CALC_DOCSERVICE) > aMediaDesc[MediaDescriptor::PROP_FILTERNAME] <<= OUString(CALC_TEXT_FILTER); > else if (aDocService == WRITER_DOCSERVICE) > aMediaDesc[MediaDescriptor::PROP_FILTERNAME] <<= OUString(WRITER_TEXT_FILTER); >- else if (aExt == "csv" || aExt == "tsv" || aExt == "tab" || aExt == "xls" || aName.endsWith(".csv.gz")) >- aMediaDesc[MediaDescriptor::PROP_FILTERNAME] <<= OUString(CALC_TEXT_FILTER); > else > aMediaDesc[MediaDescriptor::PROP_FILTERNAME] <<= OUString(WRITER_TEXT_FILTER); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 915344
: 872278