]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetSpace.cpp
FindAdv: Handle neg-spaces like normal space if searching without format
[lyx.git] / src / insets / InsetSpace.cpp
index 53fda518dad65fd28bfe89f998ea21e1a0b5904f..8ad6f7f5e081063ac5de707847c8a75f7af2cb15 100644 (file)
@@ -773,7 +773,12 @@ int InsetSpace::plaintext(odocstringstream & os,
        case InsetSpaceParams::NEGTHIN:
        case InsetSpaceParams::NEGMEDIUM:
        case InsetSpaceParams::NEGTHICK:
-               return 0;
+               if (rp.find_effective()) {
+                       os << ' ';
+                       return 1;
+               }
+               else
+                       return 0;
        default:
                os << ' ';
                return 1;