mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-12 16:50:39 +00:00
win32 updates; fix bug 461
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH-1_2_X@4512 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c76cb72281
commit
1369281252
@ -1,3 +1,7 @@
|
||||
2002-07-01 Claus Hentschel <claus.hentschel@mbau.fh-hannover.de>
|
||||
|
||||
* Win32/lyxwin32.c: update to what was in 1.1.6fix4
|
||||
|
||||
2001-12-03 André Pönitz <poenitz@gmx.de>
|
||||
|
||||
* Code_rules/Recommendations: add note about long conditions
|
||||
|
@ -1,3 +1,15 @@
|
||||
/* This is the wrapper program for LyX on Win32. Using this
|
||||
* wrapper program no DOS window will be present running LyX.
|
||||
* The bad side of this: no error output could be seen ;-)
|
||||
*
|
||||
* compile this sourec with following options set:
|
||||
*
|
||||
* gcc lyxwin32.c -O2 -o lyxwin32 -static -Wall -Wno-format \
|
||||
* -Wstrict-prototypes -Wmissing-prototypes \
|
||||
* -mwindows -e _mainCRTStartup
|
||||
*
|
||||
* Claus Hentschel, 2002-01-17
|
||||
*/
|
||||
#include <stdio.h> /* standard io library */
|
||||
#include <stdlib.h> /* standard library */
|
||||
#include <unistd.h> /* sleep , fork & exec */
|
||||
@ -7,8 +19,8 @@
|
||||
int main ( int argc, char *argv[] )
|
||||
{
|
||||
char cmd [32000] = "lyx " ; /* user command */
|
||||
char *nargs [4 ] = { /* execute with login /bin/bash */
|
||||
"/bin/bash",
|
||||
char *nargs [5 ] = { /* execute with login /bin/bash */
|
||||
"/bin/bash", "--login",
|
||||
"-c" , cmd ,
|
||||
NULL
|
||||
} ;
|
||||
@ -26,12 +38,12 @@ int main ( int argc, char *argv[] )
|
||||
i ++ ;
|
||||
}
|
||||
|
||||
strcat ( cmd, "</dev/null 2>/dev/null");
|
||||
strcat ( cmd, "</dev/null 2>/tmp/lyx.out");
|
||||
|
||||
fprintf ( stderr , "Command is: |%s|\n" , cmd );
|
||||
execv ( "/bin/bash" , nargs ) ; /* exec sub command */
|
||||
|
||||
/* Oops: we should never reach here */
|
||||
/* we should never reach here */
|
||||
perror ( "Execute failed") ;
|
||||
return ( 1 ) ; /* exit with an error */
|
||||
return ( 0 ) ; /* exit with no error */
|
||||
}
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-06-20 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
|
||||
|
||||
* text.C (changeRegionCase): do not change case of all the
|
||||
document when region ends at paragraph end (bug #461)
|
||||
|
||||
2002-07-01 André Pönitz <poenitz@gmx.net>
|
||||
|
||||
* lyxfunc.C (getStatus): fix menu feedback for alignat, xalignat
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-07-01 Claus Hentschel <claus.hentschel@mbau.fh-hannover.de>
|
||||
|
||||
* insetgraphics.C (latex): make sure file name is in os native
|
||||
form
|
||||
|
||||
2002-05-17 Herbert Voss <voss@lyx.org>
|
||||
|
||||
* insetgraphics.C: add the forgotten vertical relative Lengths
|
||||
|
@ -101,6 +101,7 @@ TODO Before initial production release:
|
||||
#include "support/filetools.h"
|
||||
#include "support/lyxalgo.h" // lyx::count
|
||||
#include "support/path.h"
|
||||
#include "support/os.h"
|
||||
|
||||
#include <algorithm> // For the std::max
|
||||
|
||||
@ -789,7 +790,7 @@ int InsetGraphics::latex(Buffer const *buf, ostream & os,
|
||||
// and remove the extension so the LaTeX will use whatever is
|
||||
// appropriate (when there are several versions in different formats)
|
||||
string const latex_str = message.empty() ?
|
||||
(before + '{' + prepareFile(buf) + '}' + after) :
|
||||
(before + '{' + os::external_path(prepareFile(buf)) + '}' + after) :
|
||||
(before + '{' + params().filename + " not found!}" + after);
|
||||
os << latex_str;
|
||||
|
||||
|
@ -2610,6 +2610,11 @@ void LyXText::changeRegionCase(BufferView * bview,
|
||||
Paragraph * par = from.par();
|
||||
|
||||
while (par && (pos != to.pos() || par != to.par())) {
|
||||
if (pos == par->size()) {
|
||||
par = par->next();
|
||||
pos = 0;
|
||||
continue;
|
||||
}
|
||||
unsigned char c = par->getChar(pos);
|
||||
if (!IsInsetChar(c) && !IsHfillChar(c)) {
|
||||
switch (action) {
|
||||
@ -2629,10 +2634,6 @@ void LyXText::changeRegionCase(BufferView * bview,
|
||||
checkParagraph(bview, par, pos);
|
||||
|
||||
++pos;
|
||||
if (pos == par->size()) {
|
||||
par = par->next();
|
||||
pos = 0;
|
||||
}
|
||||
}
|
||||
if (to.row() != from.row()) {
|
||||
refresh_y = from.y() - from.row()->baseline();
|
||||
|
@ -36,6 +36,9 @@ What's new
|
||||
|
||||
- fix bug where error insets were not correctly removed
|
||||
|
||||
- fix bug where using case changing commands on the last word of a
|
||||
paragraph would change the whole document (without any undo possible!)
|
||||
|
||||
- in commands that operate on words (Insert>Index...), make sure not
|
||||
to include insets in words
|
||||
|
||||
@ -94,6 +97,9 @@ What's new
|
||||
|
||||
- fix interaction between sixpack and LyX via lyxserver
|
||||
|
||||
- merge patches for win32 that were in 1.2.0 release from Claus
|
||||
Hentschel
|
||||
|
||||
- fix command line crash and give useful exit status on some errors
|
||||
|
||||
- fix latex import when using --with-version-suffix configure flag
|
||||
|
Loading…
Reference in New Issue
Block a user