@Björn Michaelsen: You are right. As I am not familiar with vim I have
written a bash script to modify
'/usr/lib/libreoffice/share/registry/main.xcd':

#!/bin/bash

FileToModify="/usr/lib/libreoffice/share/registry/main.xcd"
OrgLine='<prop oor:name="UpdateReferenceOnSort" oor:type="xs:boolean" 
oor:nillable="false"><value>false</value></prop>'
CorrectedLine='<prop oor:name="UpdateReferenceOnSort" oor:type="xs:boolean" 
oor:nillable="false"><value>true</value></prop>'

mv "$FileToModify" "${FileToModify}.bak"
cat ${FileToModify}.bak | sed 's%'"${OrgLine}"'%'"${CorrectedLine}"'%g' 
>"$FileToModify"

######### END OF SCRIPT ################

Use it this way:
sudo ./Script

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1389858

Title:
  Libreoffice calc 4.2.7-0ubuntu1 not updating references after sort

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1389858/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to