~ubuntu-branches/ubuntu/wily/scribus/wily-proposed

« back to all changes in this revision

Viewing changes to scribus/chartableview.cpp

  • Committer: Package Import Robot
  • Author(s): Oleksandr Moskalenko
  • Date: 2012-02-09 21:50:56 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120209215056-2wrx1ara0jbm7fi5
Tags: 1.4.0.dfsg+r17287-1
* New upstream stable release upload into Debian (Closes: #654703).
* Applied the Ubuntu armel patch.
* Removed non-free color swatches from resources.
* debian/control:
  - Moved icc-profiles from Recommends to Suggests (Closes: #655885).
  - Updated Standards-Version to 3.9.2.
  - Updated extended description per lintian warning.
* debian/rules:
  - Update mailcap (Closes: #630751). A request for mime.types update has
    been sent to the mime-support maintainer.
  - Added build-arch and build-indep targets per lintian warning.
* debian/patches:
  - top_cmakelists.patch - don't copy extra docs and changelogs.
  - scribus_cmakelists.patch - don't copy extra docs and changelogs.
  - scribus_cmakelists.patch - don't install the non-free "doc" dir.
  - profiles_cmakelists.patch - don't install non-free sRGB profile.
* debian/copyright: 
  - Converted to the DEP5 machine readable foramt.
  - Added licenses for free color swatches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
        int index = currenCharactersIndex();
78
78
        int currentChar = -1;
79
79
 
80
 
        if (index < model()->characters().count())
 
80
        if ((index < model()->characters().count()) && (model()->characters().count() > 0))
81
81
                currentChar = model()->characters()[index];
82
82
 
83
83
        if (e->button() == Qt::RightButton && currentChar > -1)
117
117
void CharTableView::viewDoubleClicked(const QModelIndex & /*index*/)
118
118
{
119
119
        if (model()->characters().count() > currenCharactersIndex())
120
 
                emit selectChar(model()->characters()[currenCharactersIndex()]);
 
120
                emit selectChar(model()->characters()[currenCharactersIndex()], model()->fonts()[currenCharactersIndex()]);
121
121
}
122
122
 
123
123
int CharTableView::currenCharactersIndex()