summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-15 21:59:04 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-15 21:59:04 +0000
commit57247c513995a56145c12bc188636a16cde073dd (patch)
tree9653f78dd10c304fcc457b555fd661fd3dfa38fe /chrome/common
parentc0bd39cdc0bf4f427a43fc75cacce990d90c7eed (diff)
downloadchromium_src-57247c513995a56145c12bc188636a16cde073dd.zip
chromium_src-57247c513995a56145c12bc188636a16cde073dd.tar.gz
chromium_src-57247c513995a56145c12bc188636a16cde073dd.tar.bz2
gtk: Fix a typo introduced in r20778. The logic condition is reversed.
BUG=none TEST=none Review URL: http://codereview.chromium.org/149704 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20792 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/gtk_util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/common/gtk_util.cc b/chrome/common/gtk_util.cc
index a442918..68a1fd0 100644
--- a/chrome/common/gtk_util.cc
+++ b/chrome/common/gtk_util.cc
@@ -371,7 +371,7 @@ int MirroredLeftPointForRect(GtkWidget* widget, const gfx::Rect& bounds) {
}
int MirroredXCoordinate(GtkWidget* widget, int x) {
- if (l10n_util::GetTextDirection() != l10n_util::RIGHT_TO_LEFT) {
+ if (l10n_util::GetTextDirection() == l10n_util::RIGHT_TO_LEFT) {
return widget->allocation.width - x;
}
return x;