<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:oliver.brinzing@gmx.de" title="Oliver Brinzing <oliver.brinzing@gmx.de>"> <span class="fn">Oliver Brinzing</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - FILEOPEN DOCX: "text:variable-set" field has trailing quotation marks in "office:string-value""
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=124986">bug 124986</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Keywords</td>
           <td>
                
           </td>
           <td>bibisected, bisected
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - FILEOPEN DOCX: "text:variable-set" field has trailing quotation marks in "office:string-value""
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=124986#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - FILEOPEN DOCX: "text:variable-set" field has trailing quotation marks in "office:string-value""
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=124986">bug 124986</a>
              from <span class="vcard"><a class="email" href="mailto:oliver.brinzing@gmx.de" title="Oliver Brinzing <oliver.brinzing@gmx.de>"> <span class="fn">Oliver Brinzing</span></a>
</span></b>
        <pre>this seems to have started with:

<a href="https://gerrit.libreoffice.org/plugins/gitiles/core/+/4d5ce76d894d2335b551f8c2b29437e2049894f0">https://gerrit.libreoffice.org/plugins/gitiles/core/+/4d5ce76d894d2335b551f8c2b29437e2049894f0</a>

commit  4d5ce76d894d2335b551f8c2b29437e2049894f0        [log]
author  Jean-Sebastien Bevilacqua <<a href="mailto:realitix@gmail.com">realitix@gmail.com</a>>
Thu Feb 16 10:16:50 2017 +0100
committer       Miklos Vajna <<a href="mailto:vmiklos@collabora.co.uk">vmiklos@collabora.co.uk</a>>  
Tue Mar 28 07:05:30 2017 +0000
tree    152ac7f5dabfc7f7cb1df385dac8ed63a3afa1d1
parent  b3549aacabffad3c4c66d901938d59e4789eef22 [diff]

<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - SWriter can't handle formula in field form Word (docx)"
   href="show_bug.cgi?id=105975">tdf#105975</a> Add Set field parsing (docx) in LibreOffice Writer

Introduction
------------

In MSWord, you can create a variable with `SET` field and then
reference it later in a formula. When you save your file as `docx`,
this `SET` field is registered in you file. In its current state,
LibreOffice can't parse the `SET` field in `docx` file.

Context of this fix
-------------------

This fix is entirely located in the `DomainMapper_Impl.cxx` file
because it's where the parsing is done.

How this fix works
------------------

First, we add `SET` support by adding it to the `aFields[]` variable.
Next, to handle the `SET` constant, we add a condition (swith case) in
`DomainMapper_Impl::CloseFieldCommand()` to call `handleFieldSet`.
Finally, `handleFieldSet` works like `handleFieldAsk` with small
differences.

Note
----

I have renamed `lcl_ExctractAskVariableAndHint` to
`lcl_ExctractVariableAndHint` because this function is used for both `ASK` and
`SET` fields.

Change-Id: I2bf948e26e8506ac151d1d0bc8556721bbe0392b
Reviewed-on: <a href="https://gerrit.libreoffice.org/34333">https://gerrit.libreoffice.org/34333</a>
Tested-by: Jenkins <<a href="mailto:ci@libreoffice.org">ci@libreoffice.org</a>>
Reviewed-by: Miklos Vajna <<a href="mailto:vmiklos@collabora.co.uk">vmiklos@collabora.co.uk</a>>

/cygdrive/d/sources/bibisect/bibisect-win32-5.4
$ git bisect good
c20d8357a586fc4616a4352d0f39117492da0bc0 is the first bad commit
commit c20d8357a586fc4616a4352d0f39117492da0bc0
Author: Norbert Thiebaud <<a href="mailto:nthiebaud@gmail.com">nthiebaud@gmail.com</a>>
Date:   Tue Mar 28 00:50:59 2017 -0700
    source sha:4d5ce76d894d2335b551f8c2b29437e2049894f0
    source sha:4d5ce76d894d2335b551f8c2b29437e2049894f0

:040000 040000 bf860248cec2620dfeeda7b75779bc849fd54475
cfc1f8b4ae15560de2dabfeb868973df7a2c303a M      instdir

/cygdrive/d/sources/bibisect/bibisect-win32-5.4
$ git bisect log
# bad: [5b9390199c309eb0f061804e45031da85989a8ef] source
sha:534fd9aacd3eea10070a3ee88fc654eb9791aa24
# good: [633bfe84509c1953415e5dd0f564098a16890131] source
sha:4136757b4e51c4e6f7cb4132c95538a7f831ef2c
git bisect start 'master' 'oldest'
# good: [fb6ad3d5a416ac122c263bb29a8d1b90a0750432] source
sha:055c8cc676921176e2b9df76bd0e09bacab1d80b
git bisect good fb6ad3d5a416ac122c263bb29a8d1b90a0750432
# bad: [e4ec339892e747e2dfd56126e74a90411fced190] source
sha:a917902c48f21d04039da86048c5c36555137d7e
git bisect bad e4ec339892e747e2dfd56126e74a90411fced190
# good: [374673a7108c11f5a2d352f522597414093decbc] source
sha:dfdf256d828e29b430e41d1b82899680664259f5
git bisect good 374673a7108c11f5a2d352f522597414093decbc
# bad: [a868c68624daf768ba20fb4f4acf5d0fef543edd] source
sha:8005237d71a75fe9bcfd860111bb0fe1fa6064d6
git bisect bad a868c68624daf768ba20fb4f4acf5d0fef543edd
# bad: [6ce293ed08bec72f7ae1a219f81c35a85b5b84ed] source
sha:0e261a6908c2521a9967069095239eeb02810b8c
git bisect bad 6ce293ed08bec72f7ae1a219f81c35a85b5b84ed
# bad: [5757440d796f875b1392b645825b1f9ea08e56f8] source
sha:2f2296d2c328fa8bf3671f8d3591d3a2bdf2752f
git bisect bad 5757440d796f875b1392b645825b1f9ea08e56f8
# bad: [cab5d9b720db39f4b1f8701695cf34195b17cb55] source
sha:799824565b783ec0b2323bd609a0e69a70182ac1
git bisect bad cab5d9b720db39f4b1f8701695cf34195b17cb55
# good: [ac97714fa1fd6359420656e6e0591954e4038576] source
sha:2fc5ef74c5200bdb82cdbbc812d7ac05a9a489dd
git bisect good ac97714fa1fd6359420656e6e0591954e4038576
# bad: [741fb160c0ac3408f5b02b0c4f98119573ecfc17] source
sha:0cb5435dd35674b6e55e22922a0819d2a755fc10
git bisect bad 741fb160c0ac3408f5b02b0c4f98119573ecfc17
# bad: [8bef32fdac27565c8ddd500424359c5654be6368] source
sha:65aa28cc1c8a90865c3a9ea379722730c40ecb53
git bisect bad 8bef32fdac27565c8ddd500424359c5654be6368
# bad: [b1140d3e2c8263b05bb80c3f5bfabe6901037754] source
sha:157cb703888f4187c2c6709b13ebf9f779580fe2
git bisect bad b1140d3e2c8263b05bb80c3f5bfabe6901037754
# bad: [c20d8357a586fc4616a4352d0f39117492da0bc0] source
sha:4d5ce76d894d2335b551f8c2b29437e2049894f0
git bisect bad c20d8357a586fc4616a4352d0f39117492da0bc0
# good: [3482471497813663a77c7baa97558d0b8b0dd933] source
sha:b3549aacabffad3c4c66d901938d59e4789eef22
git bisect good 3482471497813663a77c7baa97558d0b8b0dd933
# first bad commit: [c20d8357a586fc4616a4352d0f39117492da0bc0] source
sha:4d5ce76d894d2335b551f8c2b29437e2049894f0</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>