mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
bug 183
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3361 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1d99b34719
commit
96e9048c24
@ -107,8 +107,8 @@ void GuiBC<Button, Widget>::refreshReadOnly()
|
||||
|
||||
bool const enable = !bp().isReadOnly();
|
||||
|
||||
Widgets::const_iterator end = read_only_.end();
|
||||
Widgets::const_iterator iter = read_only_.begin();
|
||||
typename Widgets::const_iterator end = read_only_.end();
|
||||
typename Widgets::const_iterator iter = read_only_.begin();
|
||||
for (; iter != end; ++iter) {
|
||||
setWidgetEnabled(*iter, enable);
|
||||
}
|
||||
|
@ -1,3 +1,7 @@
|
||||
2002-01-13 Lars Gullik Bjønnes <larsbj@birdstep.com>
|
||||
|
||||
* ButtonController.h (refreshReadOnly): use explicit typename
|
||||
|
||||
2002-01-13 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
|
||||
|
||||
* helper_funcs.h (browseFile): add default empty button descriptions.
|
||||
|
@ -1,3 +1,8 @@
|
||||
2002-01-13 Lars Gullik Bjønnes <larsbj@birdstep.com>
|
||||
|
||||
* FormMathsMatrix.C (AlignFilter): use std::count and add some
|
||||
comments.
|
||||
|
||||
2002-01-13 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
|
||||
|
||||
* MathsSymbols.C (get_pixmap_from_symbol): add a default statement
|
||||
|
@ -120,9 +120,15 @@ int FormMathsMatrix::AlignFilter(char const * cur, int c)
|
||||
{
|
||||
size_t len = strlen(cur);
|
||||
// Use the HP version of std::count because the other one is broken on
|
||||
// some systems
|
||||
int counted;
|
||||
// some systems, (anon) and the HP one might even not exist... (Lgb)
|
||||
// Before "fixing" this again, please investige _why_ the standard
|
||||
// count is not working. Run it my be as well. (Lgb)
|
||||
#if 0
|
||||
int counted = 0;
|
||||
std::count(cur, cur+len, '|', counted);
|
||||
#else
|
||||
int counted = std::count(cur, cur + len, '|');
|
||||
#endif
|
||||
|
||||
int const n = int(fl_get_slider_value(dialog_->slider_columns) + 0.5) -
|
||||
int(len) + counted;
|
||||
|
Loading…
Reference in New Issue
Block a user