git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3361 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2002-01-13 21:46:50 +00:00
parent 1d99b34719
commit 96e9048c24
4 changed files with 19 additions and 4 deletions

View File

@ -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);
}

View File

@ -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.

View File

@ -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

View File

@ -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;